
Package org.hl7.fhir.r5.renderers
Class ResourceRenderer
java.lang.Object
org.hl7.fhir.utilities.TranslatingUtilities
org.hl7.fhir.r5.utils.TranslatingUtilities
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 enum
class
class
Nested classes/interfaces inherited from class org.hl7.fhir.r5.utils.TranslatingUtilities
TranslatingUtilities.TranslationServices
Nested classes/interfaces inherited from interface org.hl7.fhir.r5.renderers.CodeResolver
CodeResolver.CodeResolution
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Resolver.ResourceContext
protected XVerExtensionManager
Fields inherited from class org.hl7.fhir.r5.renderers.Renderer
context, RENDER_BUNDLE_DOCUMENT_CONTENT, RENDER_BUNDLE_ETAG, RENDER_BUNDLE_HEADER_DOC_ENTRY_RD, RENDER_BUNDLE_HEADER_DOC_ENTRY_U, RENDER_BUNDLE_HEADER_DOC_ENTRY_URD, RENDER_BUNDLE_HEADER_ENTRY, RENDER_BUNDLE_HEADER_ENTRY_URL, RENDER_BUNDLE_HEADER_ROOT, RENDER_BUNDLE_IF_MATCH, RENDER_BUNDLE_IF_MOD, RENDER_BUNDLE_IF_NON_MATCH, RENDER_BUNDLE_IF_NONE, RENDER_BUNDLE_LAST_MOD, RENDER_BUNDLE_LOCATION, RENDER_BUNDLE_REQUEST, RENDER_BUNDLE_RESOURCE, RENDER_BUNDLE_RESPONSE, RENDER_BUNDLE_SEARCH, RENDER_BUNDLE_SEARCH_MODE, RENDER_BUNDLE_SEARCH_SCORE
-
Constructor Summary
ConstructorsConstructorDescriptionResourceRenderer
(RenderingContext context) ResourceRenderer
(RenderingContext context, Resolver.ResourceContext rcontext) -
Method Summary
Modifier and TypeMethodDescriptionorg.hl7.fhir.utilities.xhtml.XhtmlNode
boolean
void
void
describe
(org.hl7.fhir.utilities.xhtml.XhtmlNode x, BaseWrappers.ResourceWrapper r) protected String
describeStatus
(Enumerations.PublicationStatus status, boolean experimental) abstract String
abstract String
displayReference
(Resource res, Reference r) protected BaseWrappers.ResourceWrapper
fetchResource
(BaseWrappers.BaseWrapper subject) protected void
generateCopyright
(org.hl7.fhir.utilities.xhtml.XhtmlNode x, CanonicalResource cs) protected BaseWrappers.PropertyWrapper
getProperty
(BaseWrappers.BaseWrapper res, String name) protected BaseWrappers.PropertyWrapper
getProperty
(BaseWrappers.ResourceWrapper res, String name) static void
inject
(DomainResource r, org.hl7.fhir.utilities.xhtml.XhtmlNode x, Narrative.NarrativeStatus status) protected String
static String
makeInternalBundleLink
(String fullUrl) void
given a resource, update it's narrative with the best rendering availablevoid
org.hl7.fhir.utilities.xhtml.XhtmlNode
void
render
(BaseWrappers.ResourceWrapper res, org.hl7.fhir.utilities.xhtml.XhtmlNode x, DataType type) abstract boolean
boolean
render
(org.hl7.fhir.utilities.xhtml.XhtmlNode x, BaseWrappers.ResourceWrapper r) void
renderCanonical
(Resource res, org.hl7.fhir.utilities.xhtml.XhtmlNode x, String url) void
renderCanonical
(BaseWrappers.ResourceWrapper rw, org.hl7.fhir.utilities.xhtml.XhtmlNode x, String url) void
renderCanonical
(BaseWrappers.ResourceWrapper rw, org.hl7.fhir.utilities.xhtml.XhtmlNode x, String url, boolean allowLinks, Resource src) protected void
renderCommitteeLink
(org.hl7.fhir.utilities.xhtml.XhtmlNode x, CanonicalResource cr) void
void
renderReference
(Resource res, org.hl7.fhir.utilities.xhtml.XhtmlNode x, Reference r) void
renderReference
(BaseWrappers.ResourceWrapper rw, org.hl7.fhir.utilities.xhtml.XhtmlNode x, Reference r) void
renderReference
(BaseWrappers.ResourceWrapper rw, org.hl7.fhir.utilities.xhtml.XhtmlNode x, Reference r, boolean allowLinks) void
renderReference
(BaseWrappers.ResourceWrapper rw, org.hl7.fhir.utilities.xhtml.XhtmlNode x, BaseWrappers.BaseWrapper r) protected void
renderResourceHeader
(BaseWrappers.ResourceWrapper r, org.hl7.fhir.utilities.xhtml.XhtmlNode x, boolean doId) void
renderTable
(ResourceRenderer.TableData provider, org.hl7.fhir.utilities.xhtml.XhtmlNode x) protected Resolver.ResourceWithReference
setRcontext
(Resolver.ResourceContext rcontext) protected boolean
Methods inherited from class org.hl7.fhir.r5.renderers.DataRenderer
addMarkdown, addMarkdown, addTelecom, describeLang, describeSystem, describeVersion, display, display, display, displayBase, displayCodeableConcept, displayCoding, displayCoding, displayContactPoint, displayContactPoint, displayHumanName, 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, renderRange, renderSampledData, renderTiming, renderUri, renderUri, renderUsageContext, resolveCode, resolveCode, resolveCode, smartAddText, systemFromCanonical, translate, versionFromCanonical
Methods inherited from class org.hl7.fhir.r5.renderers.Renderer
formatMessage, genStandardsStatus, renderStatus, renderStatusDiv, renderStatusRow, renderStatusSummary
Methods inherited from class org.hl7.fhir.r5.utils.TranslatingUtilities
egt
Methods inherited from class org.hl7.fhir.utilities.TranslatingUtilities
getTranslator, hasTranslator, setTranslator, toStr, toStr, translate
-
Field Details
-
rcontext
-
xverManager
-
-
Constructor Details
-
ResourceRenderer
-
ResourceRenderer
-
-
Method Details
-
getRcontext
-
setRcontext
-
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.FHIRFormatError
org.hl7.fhir.exceptions.DefinitionException
org.hl7.fhir.exceptions.FHIRException
IOException
EOperationOutcome
-
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:
IOException
EOperationOutcome
org.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:
IOException
org.hl7.fhir.exceptions.FHIRException
EOperationOutcome
-
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.FHIRFormatError
org.hl7.fhir.exceptions.DefinitionException
IOException
org.hl7.fhir.exceptions.FHIRException
EOperationOutcome
-
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.FHIRFormatError
org.hl7.fhir.exceptions.DefinitionException
IOException
org.hl7.fhir.exceptions.FHIRException
EOperationOutcome
-
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 static 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.FHIRFormatError
org.hl7.fhir.exceptions.DefinitionException
IOException
-
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.FHIRFormatError
org.hl7.fhir.exceptions.DefinitionException
IOException
-
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(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:
UnsupportedEncodingException
org.hl7.fhir.exceptions.FHIRException
IOException
-
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:
UnsupportedEncodingException
org.hl7.fhir.exceptions.FHIRException
IOException
-
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.FHIRFormatError
org.hl7.fhir.exceptions.DefinitionException
IOException
-