Package org.hl7.fhir.r5.renderers
Class StructureDefinitionRenderer
java.lang.Object
org.hl7.fhir.r5.renderers.Renderer
org.hl7.fhir.r5.renderers.DataRenderer
org.hl7.fhir.r5.renderers.ResourceRenderer
org.hl7.fhir.r5.renderers.StructureDefinitionRenderer
- All Implemented Interfaces:
CodeResolver
-
Nested Class Summary
Modifier and TypeClassDescriptionclass
static enum
class
protected class
StructureDefinitionRenderer.StatusList<T extends org.hl7.fhir.r5.renderers.StructureDefinitionRenderer.ItemWithStatus>
static class
Nested classes/interfaces inherited from class org.hl7.fhir.r5.renderers.ResourceRenderer
ResourceRenderer.RendererType, ResourceRenderer.TableData, ResourceRenderer.TableRowData
Nested classes/interfaces inherited from class org.hl7.fhir.r5.renderers.Renderer
Renderer.RenderingStatus
Nested classes/interfaces inherited from interface org.hl7.fhir.r5.renderers.CodeResolver
CodeResolver.CodeResolution
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
static final String
static final int
static final int
static final int
static final int
static final String
static final String
static final String
static final String
Fields inherited from class org.hl7.fhir.r5.renderers.ResourceRenderer
multiLangMode, xverManager
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
buildNarrative
(Renderer.RenderingStatus status, org.hl7.fhir.utilities.xhtml.XhtmlNode x, ResourceWrapper r) org.hl7.fhir.utilities.xhtml.XhtmlNode
compareMarkdown
(String location, PrimitiveType md, PrimitiveType compare, int mode) org.hl7.fhir.utilities.xhtml.XhtmlNode
compareString
(String newStr, Base source, String nLink, String name, Base parent, String oldStr, String oLink, int mode, boolean externalN, boolean externalO) org.hl7.fhir.utilities.xhtml.XhtmlNode
compareString
(String newStr, Base source, String nLink, String name, Base parent, String oldStr, String oLink, int mode, boolean externalN, boolean externalO, boolean code) boolean
compareString
(org.hl7.fhir.utilities.xhtml.XhtmlNode x, String newStr, Base source, String nLink, String name, Base parent, String oldStr, String oLink, int mode, boolean externalN, boolean externalO) void
describe
(org.hl7.fhir.utilities.xhtml.XhtmlNode x, StructureDefinition sd) org.hl7.fhir.utilities.xhtml.XhtmlNode
List
<org.hl7.fhir.utilities.xhtml.HierarchicalTableGenerator.Cell> genElementCells
(Renderer.RenderingStatus status, org.hl7.fhir.utilities.xhtml.HierarchicalTableGenerator gen, ElementDefinition element, String profileBaseFileName, boolean snapshot, String corePath, String imagePath, boolean root, boolean logicalModel, boolean allInvariants, StructureDefinition profile, org.hl7.fhir.utilities.xhtml.HierarchicalTableGenerator.Row typesRow, org.hl7.fhir.utilities.xhtml.HierarchicalTableGenerator.Row row, boolean hasDef, boolean ext, StructureDefinitionRenderer.UnusedTracker used, String ref, String sName, org.hl7.fhir.utilities.xhtml.HierarchicalTableGenerator.Cell nameCell, boolean mustSupport, boolean allowSubRows, RenderingContext rc, boolean walksIntoThis, String defPath, String anchorPrefix, List<ElementDefinition> inScopeElements, ResourceWrapper resource) org.hl7.fhir.utilities.xhtml.HierarchicalTableGenerator.Cell
genElementNameCell
(org.hl7.fhir.utilities.xhtml.HierarchicalTableGenerator gen, ElementDefinition element, String profileBaseFileName, boolean snapshot, String corePath, String imagePath, boolean root, boolean logicalModel, boolean allInvariants, StructureDefinition profile, org.hl7.fhir.utilities.xhtml.HierarchicalTableGenerator.Row typesRow, org.hl7.fhir.utilities.xhtml.HierarchicalTableGenerator.Row row, boolean hasDef, boolean ext, StructureDefinitionRenderer.UnusedTracker used, String ref, String sName, List<ElementDefinition> elements) org.hl7.fhir.utilities.xhtml.HierarchicalTableGenerator.Cell
generateDescription
(Renderer.RenderingStatus status, org.hl7.fhir.utilities.xhtml.HierarchicalTableGenerator gen, org.hl7.fhir.utilities.xhtml.HierarchicalTableGenerator.Row row, ElementDefinition definition, ElementDefinition fallback, boolean used, String baseURL, String url, StructureDefinition profile, String corePath, String imagePath, boolean root, boolean logicalModel, boolean allInvariants, boolean snapshot, boolean mustSupportOnly, boolean allowSubRows, RenderingContext rc, List<ElementDefinition> inScopeElements, ResourceWrapper res) org.hl7.fhir.utilities.xhtml.HierarchicalTableGenerator.Cell
generateDescription
(Renderer.RenderingStatus status, org.hl7.fhir.utilities.xhtml.HierarchicalTableGenerator gen, org.hl7.fhir.utilities.xhtml.HierarchicalTableGenerator.Row row, ElementDefinition definition, ElementDefinition fallback, boolean used, String baseURL, String url, StructureDefinition profile, String corePath, String imagePath, boolean root, boolean logicalModel, boolean allInvariants, boolean snapshot, boolean mustSupportOnly, boolean allowSubRows, RenderingContext rc, ResourceWrapper res) org.hl7.fhir.utilities.xhtml.HierarchicalTableGenerator.Cell
generateDescription
(Renderer.RenderingStatus status, org.hl7.fhir.utilities.xhtml.HierarchicalTableGenerator gen, org.hl7.fhir.utilities.xhtml.HierarchicalTableGenerator.Row row, ElementDefinition definition, ElementDefinition fallback, boolean used, String baseURL, String url, StructureDefinition profile, String corePath, String imagePath, boolean root, boolean logicalModel, boolean allInvariants, ElementDefinition valueDefn, boolean snapshot, boolean mustSupportOnly, boolean allowSubRows, RenderingContext rc, List<ElementDefinition> inScopeElements, ResourceWrapper res) org.hl7.fhir.utilities.xhtml.XhtmlNode
generateExtensionTable
(Renderer.RenderingStatus status, String defFile, StructureDefinition ed, String imageFolder, boolean inlineGraphics, boolean full, String corePath, String imagePath, Set<String> outputTracker, RenderingContext rc, String defPath, String anchorPrefix, ResourceWrapper res) org.hl7.fhir.utilities.xhtml.XhtmlNode
generateGrid
(String defFile, StructureDefinition profile, String imageFolder, boolean inlineGraphics, String profileBaseFileName, String corePath, String imagePath, Set<String> outputTracker) org.hl7.fhir.utilities.xhtml.XhtmlNode
generateSpanningTable
(StructureDefinition profile, String imageFolder, boolean onlyConstraints, String constraintPrefix, Set<String> outputTracker, String anchorPrefix) org.hl7.fhir.utilities.xhtml.XhtmlNode
generateTable
(Renderer.RenderingStatus status, String defFile, StructureDefinition profile, boolean diff, String imageFolder, boolean inlineGraphics, String profileBaseFileName, boolean snapshot, String corePath, String imagePath, boolean logicalModel, boolean allInvariants, Set<String> outputTracker, boolean mustSupport, RenderingContext rc, String anchorPrefix, ResourceWrapper res) getElementById
(String url, String id) boolean
hasNonBaseConditions
(List<IdType> conditions) boolean
org.hl7.fhir.utilities.xhtml.HierarchicalTableGenerator.TableModel
initCustomTable
(org.hl7.fhir.utilities.xhtml.HierarchicalTableGenerator gen, String prefix, boolean isLogical, boolean alternating, String id, boolean isActive, List<org.hl7.fhir.r5.renderers.StructureDefinitionRenderer.Column> columns) boolean
isMustSupport
(List<CanonicalType> profiles) boolean
isMustSupport
(CanonicalType profile) boolean
boolean
org.hl7.fhir.utilities.xhtml.XhtmlNode
removed
(org.hl7.fhir.utilities.xhtml.XhtmlNode x) void
renderDict
(Renderer.RenderingStatus status, StructureDefinition sd, List<ElementDefinition> elements, org.hl7.fhir.utilities.xhtml.XhtmlNode t, boolean incProfiledOut, int mode, String anchorPrefix, ResourceWrapper res) void
scanBindings
(Set<String> cols, List<ElementDefinition> list, ElementDefinition ed) void
setHostMd
(IMarkdownProcessor hostMd) void
setSdMapCache
(Map<String, Map<String, ElementDefinition>> sdMapCache) protected String
org.hl7.fhir.utilities.xhtml.XhtmlNode
unchanged
(org.hl7.fhir.utilities.xhtml.XhtmlNode x) Methods inherited from class org.hl7.fhir.r5.renderers.ResourceRenderer
buildNarrative, buildSummary, canonicalTitle, canRender, checkNarrative, describe, describeStatus, describeStatus, describeStatus, describeStatus, describeStatus, displayCanonical, displayReference, displayReference, findCanonical, findCanonical, generateCopyright, generateCopyrightTableRow, genSummaryTable, genSummaryTable, genSummaryTableContent, genSummaryTableContent, getNameForResource, getRendererType, hasAnchorName, inject, isMultiLangMode, makeIdFromBundleEntry, makeInternalBundleLink, markLanguage, parseType, renderCanonical, renderCanonical, renderCanonical, renderCommitteeLink, renderCommitteeLink, renderOrError, renderReference, renderReference, renderReference, renderResource, renderResourceTechDetails, renderResourceTechDetails, renderTable, renderUri, renderUri, resolveReference, resolveReference, setMultiLangMode
Methods inherited from class org.hl7.fhir.r5.renderers.DataRenderer
addMarkdown, addMarkdown, addTelecom, canRenderDataType, checkRenderExtensions, describeLang, describeVersion, display, displayBase, displayCodeableConcept, displayCoding, displayCoding, displayContactDetail, displayContactPoint, displayContactPoint, displayDataType, displayDataType, displayDateTime, displayHumanName, displayIdentifier, displayPeriod, displayQuantity, displayRange, displaySystem, getContext, getLinkForCode, getLocalizedBigDecimalValue, gt, gt, hasRenderableExtensions, hasRenderableExtensions, hasRenderableExtensions, makeAnchor, makeExceptionXhtml, processRelativeUrls, renderAddress, renderAnnotation, renderBase, renderCodeableConcept, renderCodeableReference, renderCoding, renderCoding, renderCoding, renderCoding, renderCodingWithDetails, renderContactPoint, renderDataRequirement, renderDataType, renderDataType, renderExpression, renderExtensionsInList, renderExtensionsInText, renderHumanName, renderIdentifier, renderMoney, renderPeriod, renderPrimitiveWithNoValue, renderPrimitiveWithNoValue, renderQuantity, renderQuantity, renderQuantity, renderRange, renderSampledData, renderTiming, renderTriggerDefinition, renderUsageContext, resolveCode, resolveCode, resolveCode, resolveCode, smartAddText, systemFromCanonical, utail, versionFromCanonical
Methods inherited from class org.hl7.fhir.r5.renderers.Renderer
egt, formatPhrase, genStandardsStatus, getTranslatedCode, renderStatus, renderStatusDiv, renderStatusRow, renderStatusSummary, toStr, toStr, wrap, wrapNC, wrapWC
-
Field Details
-
CONSTRAINT_CHAR
- See Also:
-
CONSTRAINT_STYLE
- See Also:
-
GEN_MODE_SNAP
- See Also:
-
GEN_MODE_DIFF
- See Also:
-
GEN_MODE_MS
- See Also:
-
GEN_MODE_KEY
- See Also:
-
RIM_MAPPING
- See Also:
-
v2_MAPPING
- See Also:
-
LOINC_MAPPING
- See Also:
-
SNOMED_MAPPING
- See Also:
-
-
Constructor Details
-
StructureDefinitionRenderer
-
-
Method Details
-
buildNarrative
public void buildNarrative(Renderer.RenderingStatus status, org.hl7.fhir.utilities.xhtml.XhtmlNode x, ResourceWrapper r) throws org.hl7.fhir.exceptions.FHIRFormatError, org.hl7.fhir.exceptions.DefinitionException, IOException, org.hl7.fhir.exceptions.FHIRException, EOperationOutcome - Specified by:
buildNarrative
in classResourceRenderer
- Throws:
org.hl7.fhir.exceptions.FHIRFormatError
org.hl7.fhir.exceptions.DefinitionException
IOException
org.hl7.fhir.exceptions.FHIRException
EOperationOutcome
-
buildSummary
- Specified by:
buildSummary
in classResourceRenderer
- Throws:
UnsupportedEncodingException
IOException
-
getSdMapCache
-
setSdMapCache
-
getHostMd
-
setHostMd
-
describe
-
display
-
generateGrid
public org.hl7.fhir.utilities.xhtml.XhtmlNode generateGrid(String defFile, StructureDefinition profile, String imageFolder, boolean inlineGraphics, String profileBaseFileName, String corePath, String imagePath, Set<String> outputTracker) throws IOException, org.hl7.fhir.exceptions.FHIRException - Throws:
IOException
org.hl7.fhir.exceptions.FHIRException
-
generateTable
public org.hl7.fhir.utilities.xhtml.XhtmlNode generateTable(Renderer.RenderingStatus status, String defFile, StructureDefinition profile, boolean diff, String imageFolder, boolean inlineGraphics, String profileBaseFileName, boolean snapshot, String corePath, String imagePath, boolean logicalModel, boolean allInvariants, Set<String> outputTracker, boolean mustSupport, RenderingContext rc, String anchorPrefix, ResourceWrapper res) throws IOException, org.hl7.fhir.exceptions.FHIRException - Throws:
IOException
org.hl7.fhir.exceptions.FHIRException
-
scanBindings
-
initCustomTable
public org.hl7.fhir.utilities.xhtml.HierarchicalTableGenerator.TableModel initCustomTable(org.hl7.fhir.utilities.xhtml.HierarchicalTableGenerator gen, String prefix, boolean isLogical, boolean alternating, String id, boolean isActive, List<org.hl7.fhir.r5.renderers.StructureDefinitionRenderer.Column> columns) throws IOException - Throws:
IOException
-
genElementNameCell
public org.hl7.fhir.utilities.xhtml.HierarchicalTableGenerator.Cell genElementNameCell(org.hl7.fhir.utilities.xhtml.HierarchicalTableGenerator gen, ElementDefinition element, String profileBaseFileName, boolean snapshot, String corePath, String imagePath, boolean root, boolean logicalModel, boolean allInvariants, StructureDefinition profile, org.hl7.fhir.utilities.xhtml.HierarchicalTableGenerator.Row typesRow, org.hl7.fhir.utilities.xhtml.HierarchicalTableGenerator.Row row, boolean hasDef, boolean ext, StructureDefinitionRenderer.UnusedTracker used, String ref, String sName, List<ElementDefinition> elements) throws IOException - Throws:
IOException
-
genElementCells
public List<org.hl7.fhir.utilities.xhtml.HierarchicalTableGenerator.Cell> genElementCells(Renderer.RenderingStatus status, org.hl7.fhir.utilities.xhtml.HierarchicalTableGenerator gen, ElementDefinition element, String profileBaseFileName, boolean snapshot, String corePath, String imagePath, boolean root, boolean logicalModel, boolean allInvariants, StructureDefinition profile, org.hl7.fhir.utilities.xhtml.HierarchicalTableGenerator.Row typesRow, org.hl7.fhir.utilities.xhtml.HierarchicalTableGenerator.Row row, boolean hasDef, boolean ext, StructureDefinitionRenderer.UnusedTracker used, String ref, String sName, org.hl7.fhir.utilities.xhtml.HierarchicalTableGenerator.Cell nameCell, boolean mustSupport, boolean allowSubRows, RenderingContext rc, boolean walksIntoThis, String defPath, String anchorPrefix, List<ElementDefinition> inScopeElements, ResourceWrapper resource) throws IOException - Throws:
IOException
-
supplementMissingDiffElements
-
generateDescription
public org.hl7.fhir.utilities.xhtml.HierarchicalTableGenerator.Cell generateDescription(Renderer.RenderingStatus status, org.hl7.fhir.utilities.xhtml.HierarchicalTableGenerator gen, org.hl7.fhir.utilities.xhtml.HierarchicalTableGenerator.Row row, ElementDefinition definition, ElementDefinition fallback, boolean used, String baseURL, String url, StructureDefinition profile, String corePath, String imagePath, boolean root, boolean logicalModel, boolean allInvariants, boolean snapshot, boolean mustSupportOnly, boolean allowSubRows, RenderingContext rc, ResourceWrapper res) throws IOException, org.hl7.fhir.exceptions.FHIRException - Throws:
IOException
org.hl7.fhir.exceptions.FHIRException
-
generateDescription
public org.hl7.fhir.utilities.xhtml.HierarchicalTableGenerator.Cell generateDescription(Renderer.RenderingStatus status, org.hl7.fhir.utilities.xhtml.HierarchicalTableGenerator gen, org.hl7.fhir.utilities.xhtml.HierarchicalTableGenerator.Row row, ElementDefinition definition, ElementDefinition fallback, boolean used, String baseURL, String url, StructureDefinition profile, String corePath, String imagePath, boolean root, boolean logicalModel, boolean allInvariants, boolean snapshot, boolean mustSupportOnly, boolean allowSubRows, RenderingContext rc, List<ElementDefinition> inScopeElements, ResourceWrapper res) throws IOException, org.hl7.fhir.exceptions.FHIRException - Throws:
IOException
org.hl7.fhir.exceptions.FHIRException
-
generateDescription
public org.hl7.fhir.utilities.xhtml.HierarchicalTableGenerator.Cell generateDescription(Renderer.RenderingStatus status, org.hl7.fhir.utilities.xhtml.HierarchicalTableGenerator gen, org.hl7.fhir.utilities.xhtml.HierarchicalTableGenerator.Row row, ElementDefinition definition, ElementDefinition fallback, boolean used, String baseURL, String url, StructureDefinition profile, String corePath, String imagePath, boolean root, boolean logicalModel, boolean allInvariants, ElementDefinition valueDefn, boolean snapshot, boolean mustSupportOnly, boolean allowSubRows, RenderingContext rc, List<ElementDefinition> inScopeElements, ResourceWrapper res) throws IOException, org.hl7.fhir.exceptions.FHIRException - Throws:
IOException
org.hl7.fhir.exceptions.FHIRException
-
codeForAggregation
-
hintForAggregation
-
tail
- Overrides:
tail
in classDataRenderer
-
hasNonBaseConditions
-
hasNonBaseConstraints
public boolean hasNonBaseConstraints(List<ElementDefinition.ElementDefinitionConstraintComponent> constraints) -
listConstraintsAndConditions
-
isMustSupportDirect
-
isMustSupport
-
isMustSupport
-
isMustSupport
-
generateSpanningTable
public org.hl7.fhir.utilities.xhtml.XhtmlNode generateSpanningTable(StructureDefinition profile, String imageFolder, boolean onlyConstraints, String constraintPrefix, Set<String> outputTracker, String anchorPrefix) throws IOException, org.hl7.fhir.exceptions.FHIRException - Throws:
IOException
org.hl7.fhir.exceptions.FHIRException
-
formatTypeSpecifiers
-
generateExtensionTable
public org.hl7.fhir.utilities.xhtml.XhtmlNode generateExtensionTable(Renderer.RenderingStatus status, String defFile, StructureDefinition ed, String imageFolder, boolean inlineGraphics, boolean full, String corePath, String imagePath, Set<String> outputTracker, RenderingContext rc, String defPath, String anchorPrefix, ResourceWrapper res) throws IOException, org.hl7.fhir.exceptions.FHIRException - Throws:
IOException
org.hl7.fhir.exceptions.FHIRException
-
renderDict
public void renderDict(Renderer.RenderingStatus status, StructureDefinition sd, List<ElementDefinition> elements, org.hl7.fhir.utilities.xhtml.XhtmlNode t, boolean incProfiledOut, int mode, String anchorPrefix, ResourceWrapper res) throws org.hl7.fhir.exceptions.FHIRException, IOException - Throws:
org.hl7.fhir.exceptions.FHIRException
IOException
-
getElementById
-
compareMarkdown
public org.hl7.fhir.utilities.xhtml.XhtmlNode compareMarkdown(String location, PrimitiveType md, PrimitiveType compare, int mode) throws org.hl7.fhir.exceptions.FHIRException, IOException - Throws:
org.hl7.fhir.exceptions.FHIRException
IOException
-
compareString
-
compareString
-
compareString
-
unchanged
-
removed
-