Package org.hl7.fhir.r5.renderers
Class ResourceRenderer
java.lang.Object
org.hl7.fhir.r5.renderers.Renderer
org.hl7.fhir.r5.renderers.DataRenderer
org.hl7.fhir.r5.renderers.ResourceRenderer
- All Implemented Interfaces:
CodeResolver
- Direct Known Subclasses:
ActorDefinitionRenderer,BundleRenderer,CapabilityStatementRenderer,CompartmentDefinitionRenderer,DiagnosticReportRenderer,EncounterRenderer,ImplementationGuideRenderer,LibraryRenderer,LiquidRenderer,ListRenderer,NamingSystemRenderer,OperationOutcomeRenderer,ParametersRenderer,PatientRenderer,ProfileDrivenRenderer,ProvenanceRenderer,QuestionnaireResponseRenderer,RequirementsRenderer,StructureDefinitionRenderer,SubscriptionTopicRenderer,TerminologyRenderer,TestPlanRenderer
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumclassclassNested classes/interfaces inherited from interface org.hl7.fhir.r5.renderers.CodeResolver
CodeResolver.CodeResolution -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanprotected Resolver.ResourceContextprotected XVerExtensionManager -
Constructor Summary
ConstructorsConstructorDescriptionResourceRenderer(RenderingContext context) ResourceRenderer(RenderingContext context, Resolver.ResourceContext rcontext) -
Method Summary
Modifier and TypeMethodDescriptionorg.hl7.fhir.utilities.xhtml.XhtmlNodebooleanorg.hl7.fhir.utilities.xhtml.XhtmlNodevoidvoiddescribe(org.hl7.fhir.utilities.xhtml.XhtmlNode x, BaseWrappers.ResourceWrapper r) protected StringdescribeStatus(Enumerations.PublicationStatus status, boolean experimental) abstract Stringabstract StringdisplayReference(Resource res, Reference r) protected BaseWrappers.ResourceWrapperfetchResource(BaseWrappers.BaseWrapper subject) protected voidgenerateCopyright(org.hl7.fhir.utilities.xhtml.XhtmlNode x, CanonicalResource cs) protected BaseWrappers.PropertyWrappergetProperty(BaseWrappers.BaseWrapper res, String name) protected BaseWrappers.PropertyWrappergetProperty(BaseWrappers.ResourceWrapper res, String name) protected booleanhasAnchorName(org.hl7.fhir.utilities.xhtml.XhtmlNode x, String an) voidinject(DomainResource r, org.hl7.fhir.utilities.xhtml.XhtmlNode x, Narrative.NarrativeStatus status) booleanprotected Stringstatic StringmakeInternalBundleLink(String fullUrl) voidmarkLanguage(org.hl7.fhir.utilities.xhtml.XhtmlNode x) voidgiven a resource, update it's narrative with the best rendering availablevoidorg.hl7.fhir.utilities.xhtml.XhtmlNodevoidrender(BaseWrappers.ResourceWrapper res, org.hl7.fhir.utilities.xhtml.XhtmlNode x, DataType type) abstract booleanbooleanrender(org.hl7.fhir.utilities.xhtml.XhtmlNode x, BaseWrappers.ResourceWrapper r) voidrenderCanonical(Resource res, org.hl7.fhir.utilities.xhtml.XhtmlNode x, String url) voidrenderCanonical(BaseWrappers.ResourceWrapper rw, org.hl7.fhir.utilities.xhtml.XhtmlNode x, String url) voidrenderCanonical(BaseWrappers.ResourceWrapper rw, org.hl7.fhir.utilities.xhtml.XhtmlNode x, String url, boolean allowLinks, Resource src) protected voidrenderCommitteeLink(org.hl7.fhir.utilities.xhtml.XhtmlNode x, CanonicalResource cr) voidvoidrenderReference(Resource res, org.hl7.fhir.utilities.xhtml.HierarchicalTableGenerator gen, List<org.hl7.fhir.utilities.xhtml.HierarchicalTableGenerator.Piece> pieces, Reference r, boolean allowLinks) voidrenderReference(Resource res, org.hl7.fhir.utilities.xhtml.XhtmlNode x, Reference r) voidrenderReference(BaseWrappers.ResourceWrapper rw, org.hl7.fhir.utilities.xhtml.XhtmlNode x, Reference r) voidrenderReference(BaseWrappers.ResourceWrapper rw, org.hl7.fhir.utilities.xhtml.XhtmlNode x, Reference r, boolean allowLinks) voidrenderReference(BaseWrappers.ResourceWrapper rw, org.hl7.fhir.utilities.xhtml.XhtmlNode x, BaseWrappers.BaseWrapper r) protected voidrenderResourceHeader(BaseWrappers.ResourceWrapper r, org.hl7.fhir.utilities.xhtml.XhtmlNode x, boolean doId) voidrenderTable(ResourceRenderer.TableData provider, org.hl7.fhir.utilities.xhtml.XhtmlNode x) protected Resolver.ResourceWithReferencesetMultiLangMode(boolean multiLangMode) setRcontext(Resolver.ResourceContext rcontext) protected booleanMethods inherited from class org.hl7.fhir.r5.renderers.DataRenderer
addMarkdown, addMarkdown, addTelecom, describeLang, describeVersion, display, display, display, displayBase, displayCodeableConcept, displayCoding, displayCoding, displayContactDetail, displayContactPoint, displayContactPoint, displayDateTime, displayHumanName, displayIdentifier, displayPeriod, displayQuantity, displayRange, displaySystem, getContext, getLinkForCode, getLocalizedBigDecimalValue, gt, hasRenderableExtensions, hasRenderableExtensions, makeAnchor, makeExceptionXhtml, processRelativeUrls, render, render, renderAddress, renderAnnotation, renderAnnotation, renderBase, renderCodeableConcept, renderCodeableConcept, renderCodeableReference, renderCoding, renderCoding, renderCoding, renderCodingWithDetails, renderContactPoint, renderDataRequirement, renderDate, renderDateTime, renderDateTime, renderExpression, renderExtensionsInList, renderExtensionsInList, renderExtensionsInList, renderExtensionsInText, renderHumanName, renderIdentifier, renderMoney, renderPeriod, renderQuantity, renderQuantity, renderQuantity, renderRange, renderReference, renderSampledData, renderTiming, renderTriggerDefinition, renderUri, renderUri, renderUsageContext, resolveCode, resolveCode, resolveCode, smartAddText, systemFromCanonical, versionFromCanonicalMethods inherited from class org.hl7.fhir.r5.renderers.Renderer
egt, formatPhrase, genStandardsStatus, renderStatus, renderStatusDiv, renderStatusRow, renderStatusSummary, toStr, toStr
-
Field Details
-
rcontext
-
xverManager
-
multiLangMode
-
-
Constructor Details
-
ResourceRenderer
-
ResourceRenderer
-
-
Method Details
-
getRcontext
-
setRcontext
-
isMultiLangMode
-
setMultiLangMode
-
build
public org.hl7.fhir.utilities.xhtml.XhtmlNode build(Resource dr) throws org.hl7.fhir.exceptions.FHIRFormatError, org.hl7.fhir.exceptions.DefinitionException, org.hl7.fhir.exceptions.FHIRException, IOException, EOperationOutcome - Throws:
org.hl7.fhir.exceptions.FHIRFormatErrororg.hl7.fhir.exceptions.DefinitionExceptionorg.hl7.fhir.exceptions.FHIRExceptionIOExceptionEOperationOutcome
-
render
public void render(DomainResource r) throws IOException, org.hl7.fhir.exceptions.FHIRException, EOperationOutcome given a resource, update it's narrative with the best rendering available- Parameters:
r- - the domain resource in question- Throws:
IOExceptionEOperationOutcomeorg.hl7.fhir.exceptions.FHIRException
-
render
public org.hl7.fhir.utilities.xhtml.XhtmlNode render(BaseWrappers.ResourceWrapper r) throws IOException, org.hl7.fhir.exceptions.FHIRException, EOperationOutcome - Throws:
IOExceptionorg.hl7.fhir.exceptions.FHIRExceptionEOperationOutcome
-
checkNarrative
public org.hl7.fhir.utilities.xhtml.XhtmlNode checkNarrative(BaseWrappers.ResourceWrapper r) throws IOException, org.hl7.fhir.exceptions.FHIRException, EOperationOutcome - Throws:
IOExceptionorg.hl7.fhir.exceptions.FHIRExceptionEOperationOutcome
-
hasAnchorName
-
render
public abstract boolean render(org.hl7.fhir.utilities.xhtml.XhtmlNode x, Resource r) throws org.hl7.fhir.exceptions.FHIRFormatError, org.hl7.fhir.exceptions.DefinitionException, IOException, org.hl7.fhir.exceptions.FHIRException, EOperationOutcome - Throws:
org.hl7.fhir.exceptions.FHIRFormatErrororg.hl7.fhir.exceptions.DefinitionExceptionIOExceptionorg.hl7.fhir.exceptions.FHIRExceptionEOperationOutcome
-
render
public boolean render(org.hl7.fhir.utilities.xhtml.XhtmlNode x, BaseWrappers.ResourceWrapper r) throws org.hl7.fhir.exceptions.FHIRFormatError, org.hl7.fhir.exceptions.DefinitionException, IOException, org.hl7.fhir.exceptions.FHIRException, EOperationOutcome - Throws:
org.hl7.fhir.exceptions.FHIRFormatErrororg.hl7.fhir.exceptions.DefinitionExceptionIOExceptionorg.hl7.fhir.exceptions.FHIRExceptionEOperationOutcome
-
describe
public void describe(org.hl7.fhir.utilities.xhtml.XhtmlNode x, Resource r) throws UnsupportedEncodingException, IOException -
describe
public void describe(org.hl7.fhir.utilities.xhtml.XhtmlNode x, BaseWrappers.ResourceWrapper r) throws UnsupportedEncodingException, IOException -
display
-
display
public abstract String display(BaseWrappers.ResourceWrapper r) throws UnsupportedEncodingException, IOException -
inject
public void inject(DomainResource r, org.hl7.fhir.utilities.xhtml.XhtmlNode x, Narrative.NarrativeStatus status) -
renderCanonical
public void renderCanonical(Resource res, org.hl7.fhir.utilities.xhtml.XhtmlNode x, String url) throws UnsupportedEncodingException, IOException -
renderCanonical
public void renderCanonical(BaseWrappers.ResourceWrapper rw, org.hl7.fhir.utilities.xhtml.XhtmlNode x, String url) throws UnsupportedEncodingException, IOException -
renderCanonical
public void renderCanonical(BaseWrappers.ResourceWrapper rw, org.hl7.fhir.utilities.xhtml.XhtmlNode x, String url, boolean allowLinks, Resource src) throws UnsupportedEncodingException, IOException -
render
public void render(Resource res, org.hl7.fhir.utilities.xhtml.XhtmlNode x, DataType type) throws org.hl7.fhir.exceptions.FHIRFormatError, org.hl7.fhir.exceptions.DefinitionException, IOException - Throws:
org.hl7.fhir.exceptions.FHIRFormatErrororg.hl7.fhir.exceptions.DefinitionExceptionIOException
-
render
public void render(BaseWrappers.ResourceWrapper res, org.hl7.fhir.utilities.xhtml.XhtmlNode x, DataType type) throws org.hl7.fhir.exceptions.FHIRFormatError, org.hl7.fhir.exceptions.DefinitionException, IOException - Throws:
org.hl7.fhir.exceptions.FHIRFormatErrororg.hl7.fhir.exceptions.DefinitionExceptionIOException
-
renderReference
public void renderReference(Resource res, org.hl7.fhir.utilities.xhtml.XhtmlNode x, Reference r) throws UnsupportedEncodingException, IOException -
renderReference
public void renderReference(BaseWrappers.ResourceWrapper rw, org.hl7.fhir.utilities.xhtml.XhtmlNode x, Reference r) throws UnsupportedEncodingException, IOException -
renderReference
public void renderReference(Resource res, org.hl7.fhir.utilities.xhtml.HierarchicalTableGenerator gen, List<org.hl7.fhir.utilities.xhtml.HierarchicalTableGenerator.Piece> pieces, Reference r, boolean allowLinks) throws UnsupportedEncodingException, IOException -
renderReference
public void renderReference(BaseWrappers.ResourceWrapper rw, org.hl7.fhir.utilities.xhtml.XhtmlNode x, Reference r, boolean allowLinks) throws UnsupportedEncodingException, IOException -
renderReference
public void renderReference(BaseWrappers.ResourceWrapper rw, org.hl7.fhir.utilities.xhtml.XhtmlNode x, BaseWrappers.BaseWrapper r) throws UnsupportedEncodingException, IOException -
resolveReference
protected Resolver.ResourceWithReference resolveReference(BaseWrappers.ResourceWrapper res, String url) -
makeIdFromBundleEntry
-
generateCopyright
-
displayReference
public String displayReference(Resource res, Reference r) throws UnsupportedEncodingException, IOException -
parseType
-
getProperty
-
getProperty
-
valued
-
fetchResource
protected BaseWrappers.ResourceWrapper fetchResource(BaseWrappers.BaseWrapper subject) throws UnsupportedEncodingException, org.hl7.fhir.exceptions.FHIRException, IOException - Throws:
UnsupportedEncodingExceptionorg.hl7.fhir.exceptions.FHIRExceptionIOException
-
describeStatus
-
renderCommitteeLink
-
makeInternalBundleLink
-
canRender
-
renderResourceHeader
protected void renderResourceHeader(BaseWrappers.ResourceWrapper r, org.hl7.fhir.utilities.xhtml.XhtmlNode x, boolean doId) throws UnsupportedEncodingException, org.hl7.fhir.exceptions.FHIRException, IOException - Throws:
UnsupportedEncodingExceptionorg.hl7.fhir.exceptions.FHIRExceptionIOException
-
renderOrError
-
getRendererType
-
renderTable
public void renderTable(ResourceRenderer.TableData provider, org.hl7.fhir.utilities.xhtml.XhtmlNode x) throws org.hl7.fhir.exceptions.FHIRFormatError, org.hl7.fhir.exceptions.DefinitionException, IOException - Throws:
org.hl7.fhir.exceptions.FHIRFormatErrororg.hl7.fhir.exceptions.DefinitionExceptionIOException
-
markLanguage
-