
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
Nested ClassesModifier and TypeClassDescriptionstatic classclassstatic enumstatic enumstatic classprotected classStructureDefinitionRenderer.StatusList<T extends org.hl7.fhir.r5.renderers.StructureDefinitionRenderer.ItemWithStatus>static classNested classes/interfaces inherited from class org.hl7.fhir.r5.renderers.ResourceRenderer
ResourceRenderer.RendererType, ResourceRenderer.TableData, ResourceRenderer.TableRowDataNested classes/interfaces inherited from class org.hl7.fhir.r5.renderers.Renderer
Renderer.RenderingStatusNested classes/interfaces inherited from interface org.hl7.fhir.r5.renderers.CodeResolver
CodeResolver.CodeResolution -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final intstatic final intstatic final intstatic final intstatic final Stringstatic final Stringstatic final Stringstatic final StringFields inherited from class org.hl7.fhir.r5.renderers.ResourceRenderer
inner, multiLangMode, xverManager -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.hl7.fhir.utilities.xhtml.XhtmlNodebuildElementTable(Renderer.RenderingStatus status, String defFile, StructureDefinition profile, 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) voidbuildNarrative(Renderer.RenderingStatus status, org.hl7.fhir.utilities.xhtml.XhtmlNode x, ResourceWrapper r) voidcheckValueDomainConstraints(ElementDefinition defn, ElementDefinition diffDefn, String path, ElementTable.TableElement e, boolean cardinality) org.hl7.fhir.utilities.xhtml.XhtmlNodecompareMarkdown(String location, PrimitiveType md, PrimitiveType compare, int mode) org.hl7.fhir.utilities.xhtml.XhtmlNodecompareString(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.XhtmlNodecompareString(String newStr, Base source, String nLink, String name, Base parent, String oldStr, String oLink, int mode, boolean externalN, boolean externalO, boolean code) booleancompareString(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) voiddescribe(org.hl7.fhir.utilities.xhtml.XhtmlNode x, StructureDefinition sd) org.hl7.fhir.utilities.xhtml.XhtmlNodeList<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, 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.CellgenElementNameCell(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.XhtmlNodegenerateAttributeTable(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, String idSfx) org.hl7.fhir.utilities.xhtml.HierarchicalTableGenerator.CellgenerateDescription(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.CellgenerateDescription(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.CellgenerateDescription(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.XhtmlNodegenerateExtensionTable(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.XhtmlNodegenerateGrid(String defFile, StructureDefinition profile, String imageFolder, boolean inlineGraphics, String profileBaseFileName, String corePath, String imagePath, Set<String> outputTracker) org.hl7.fhir.utilities.xhtml.XhtmlNodegenerateSpanningTable(StructureDefinition profile, String imageFolder, boolean onlyConstraints, String constraintPrefix, Set<String> outputTracker, String anchorPrefix) org.hl7.fhir.utilities.xhtml.XhtmlNodegenerateTable(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, String idSfx) getElementById(String url, String id) static booleanhasNonBaseConditions(List<IdType> conditions) static booleanorg.hl7.fhir.utilities.xhtml.HierarchicalTableGenerator.TableModelinitCustomTable(org.hl7.fhir.utilities.xhtml.HierarchicalTableGenerator gen, String prefix, boolean isLogical, boolean alternating, String id, boolean isActive, List<StructureDefinitionRenderer.Column> columns) org.hl7.fhir.utilities.xhtml.HierarchicalTableGenerator.TableModelinitElementTable(org.hl7.fhir.utilities.xhtml.HierarchicalTableGenerator gen, String prefix, boolean alternating, String id, boolean isActive, org.hl7.fhir.utilities.xhtml.HierarchicalTableGenerator.TableGenerationMode mode) booleanisMustSupport(List<CanonicalType> profiles) booleanisMustSupport(CanonicalType profile) booleanbooleanorg.hl7.fhir.utilities.xhtml.XhtmlNoderemoved(org.hl7.fhir.utilities.xhtml.XhtmlNode x) voidrenderDict(Renderer.RenderingStatus status, StructureDefinition sd, List<ElementDefinition> elements, org.hl7.fhir.utilities.xhtml.XhtmlNode t, boolean incProfiledOut, int mode, String anchorPrefix, ResourceWrapper res) voidscanBindings(Set<String> cols, List<ElementDefinition> list, ElementDefinition ed) voidsetHostMd(IMarkdownProcessor hostMd) voidsetMappingsMode(StructureDefinitionRenderer.MapStructureMode mappingsMode) voidsetSdMapCache(Map<String, Map<String, ElementDefinition>> sdMapCache) protected Stringorg.hl7.fhir.utilities.xhtml.XhtmlNodeunchanged(org.hl7.fhir.utilities.xhtml.XhtmlNode x) protected booleanMethods inherited from class org.hl7.fhir.r5.renderers.ResourceRenderer
addContained, 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, isInner, isMultiLangMode, makeIdFromBundleEntry, makeInternalBundleLink, markLanguage, parseType, plateStyle, renderCanonical, renderCanonical, renderCanonical, renderCommitteeLink, renderCommitteeLink, renderingUsesValidation, renderOrError, renderReference, renderReference, renderReference, renderResource, renderResourceTechDetails, renderResourceTechDetails, renderTable, renderUri, renderUri, resolveReference, resolveReference, selfLink, setInner, setMultiLangModeMethods inherited from class org.hl7.fhir.r5.renderers.DataRenderer
addMarkdown, addMarkdown, addTelecom, canRenderDataType, checkRenderExtensions, describeLang, describeVersion, display, displayBase, displayCodeableConcept, displayCodeSource, displayCoding, displayCoding, displayContactDetail, displayContactPoint, displayContactPoint, displayDataType, displayDataType, displayDateTime, displayHumanName, displayIdentifier, displayPeriod, displayQuantity, displayRange, displaySystem, getContext, getLinkForCode, getLinkForSystem, getLocalizedBigDecimalValue, gt, gt, hasRenderableExtensions, hasRenderableExtensions, hasRenderableExtensions, isInKnownUrlSpace, lookupCode, 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, systemFromCanonical, utail, versionFromCanonicalMethods inherited from class org.hl7.fhir.r5.renderers.Renderer
egt, formatPhrase, genStandardsStatus, getTranslatedCode, markBoilerplate, markGenerated, renderStatus, renderStatusDiv, renderStatusRow, renderStatusSummary, spanIfTracking, toStr, toStr, wrap, wrapNC, wrapWC, xlinkNarrative
-
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
-
willRenderId
- Overrides:
willRenderIdin classResourceRenderer
-
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:
buildNarrativein classResourceRenderer- Throws:
org.hl7.fhir.exceptions.FHIRFormatErrororg.hl7.fhir.exceptions.DefinitionExceptionIOExceptionorg.hl7.fhir.exceptions.FHIRExceptionEOperationOutcome
-
buildSummary
- Specified by:
buildSummaryin classResourceRenderer- Throws:
UnsupportedEncodingExceptionIOException
-
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:
IOExceptionorg.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, String idSfx) throws IOException, org.hl7.fhir.exceptions.FHIRException - Throws:
IOExceptionorg.hl7.fhir.exceptions.FHIRException
-
generateAttributeTable
public org.hl7.fhir.utilities.xhtml.XhtmlNode generateAttributeTable(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, String idSfx) throws IOException, org.hl7.fhir.exceptions.FHIRException - Throws:
IOExceptionorg.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<StructureDefinitionRenderer.Column> columns) throws IOException - Throws:
IOException
-
initElementTable
public org.hl7.fhir.utilities.xhtml.HierarchicalTableGenerator.TableModel initElementTable(org.hl7.fhir.utilities.xhtml.HierarchicalTableGenerator gen, String prefix, boolean alternating, String id, boolean isActive, org.hl7.fhir.utilities.xhtml.HierarchicalTableGenerator.TableGenerationMode mode) 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, 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
-
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:
IOExceptionorg.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:
IOExceptionorg.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:
IOExceptionorg.hl7.fhir.exceptions.FHIRException
-
codeForAggregation
-
hintForAggregation
-
tail
- Overrides:
tailin classDataRenderer
-
hasNonBaseConditions
-
hasNonBaseConstraints
public static 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:
IOExceptionorg.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:
IOExceptionorg.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.FHIRExceptionIOException
-
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.FHIRExceptionIOException
-
compareString
-
compareString
-
compareString
-
unchanged
-
removed
-
buildElementTable
public org.hl7.fhir.utilities.xhtml.XhtmlNode buildElementTable(Renderer.RenderingStatus status, String defFile, StructureDefinition profile, 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 - Throws:
IOException
-
checkValueDomainConstraints
public void checkValueDomainConstraints(ElementDefinition defn, ElementDefinition diffDefn, String path, ElementTable.TableElement e, boolean cardinality) -
getMappingsMode
-
setMappingsMode
-
getMappingTargets
-