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 TypeClassDescriptionclassstatic enumclassprotected 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 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
multiLangMode, rcontext, xverManager -
Constructor Summary
ConstructorsConstructorDescriptionStructureDefinitionRenderer(RenderingContext context, Resolver.ResourceContext rcontext) -
Method Summary
Modifier and TypeMethodDescriptionorg.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(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) 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.HierarchicalTableGenerator.CellgenerateDescription(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) org.hl7.fhir.utilities.xhtml.HierarchicalTableGenerator.CellgenerateDescription(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) org.hl7.fhir.utilities.xhtml.HierarchicalTableGenerator.CellgenerateDescription(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) org.hl7.fhir.utilities.xhtml.XhtmlNodegenerateExtensionTable(String defFile, StructureDefinition ed, String imageFolder, boolean inlineGraphics, boolean full, String corePath, String imagePath, Set<String> outputTracker, RenderingContext rc, String defPath, String anchorPrefix) 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) org.hl7.fhir.utilities.xhtml.XhtmlNodegenerateTable(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) getElementById(String url, String id) booleanhasNonBaseConditions(List<IdType> conditions) 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<org.hl7.fhir.r5.renderers.StructureDefinitionRenderer.Column> columns) booleanisMustSupport(List<CanonicalType> profiles) booleanisMustSupport(CanonicalType profile) booleanbooleanorg.hl7.fhir.utilities.xhtml.XhtmlNoderemoved(org.hl7.fhir.utilities.xhtml.XhtmlNode x) booleanbooleanrender(org.hl7.fhir.utilities.xhtml.XhtmlNode x, StructureDefinition sd) voidrenderDict(StructureDefinition sd, List<ElementDefinition> elements, org.hl7.fhir.utilities.xhtml.XhtmlNode t, boolean incProfiledOut, int mode, String anchorPrefix) voidscanBindings(Set<String> cols, List<ElementDefinition> list, ElementDefinition ed) voidsetHostMd(IMarkdownProcessor hostMd) voidsetSdMapCache(Map<String, Map<String, ElementDefinition>> sdMapCache) protected Stringorg.hl7.fhir.utilities.xhtml.XhtmlNodeunchanged(org.hl7.fhir.utilities.xhtml.XhtmlNode x) Methods inherited from class org.hl7.fhir.r5.renderers.ResourceRenderer
build, canRender, checkNarrative, describe, describe, describeStatus, displayReference, fetchResource, generateCopyright, getProperty, getProperty, getRcontext, getRendererType, hasAnchorName, inject, isMultiLangMode, makeIdFromBundleEntry, makeInternalBundleLink, markLanguage, parseType, render, render, render, render, render, renderCanonical, renderCanonical, renderCanonical, renderCommitteeLink, renderOrError, renderReference, renderReference, renderReference, renderReference, renderReference, renderResourceHeader, renderTable, resolveReference, setMultiLangMode, setRcontext, valuedMethods 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
-
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
-
StructureDefinitionRenderer
-
-
Method Details
-
getSdMapCache
-
setSdMapCache
-
getHostMd
-
setHostMd
-
render
public boolean render(org.hl7.fhir.utilities.xhtml.XhtmlNode x, Resource dr) throws org.hl7.fhir.exceptions.FHIRFormatError, org.hl7.fhir.exceptions.DefinitionException, IOException - Specified by:
renderin classResourceRenderer- Throws:
org.hl7.fhir.exceptions.FHIRFormatErrororg.hl7.fhir.exceptions.DefinitionExceptionIOException
-
render
public boolean render(org.hl7.fhir.utilities.xhtml.XhtmlNode x, StructureDefinition sd) throws org.hl7.fhir.exceptions.FHIRFormatError, org.hl7.fhir.exceptions.DefinitionException, IOException - Throws:
org.hl7.fhir.exceptions.FHIRFormatErrororg.hl7.fhir.exceptions.DefinitionExceptionIOException
-
describe
-
display
-
display
- Specified by:
displayin classResourceRenderer- Throws:
UnsupportedEncodingExceptionIOException
-
display
public String display(BaseWrappers.ResourceWrapper r) throws UnsupportedEncodingException, IOException - Specified by:
displayin classResourceRenderer- Throws:
UnsupportedEncodingExceptionIOException
-
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(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) 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<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(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) throws IOException - Throws:
IOException
-
supplementMissingDiffElements
-
generateDescription
public org.hl7.fhir.utilities.xhtml.HierarchicalTableGenerator.Cell generateDescription(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) throws IOException, org.hl7.fhir.exceptions.FHIRException - Throws:
IOExceptionorg.hl7.fhir.exceptions.FHIRException
-
generateDescription
public org.hl7.fhir.utilities.xhtml.HierarchicalTableGenerator.Cell generateDescription(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) throws IOException, org.hl7.fhir.exceptions.FHIRException - Throws:
IOExceptionorg.hl7.fhir.exceptions.FHIRException
-
generateDescription
public org.hl7.fhir.utilities.xhtml.HierarchicalTableGenerator.Cell generateDescription(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) throws IOException, org.hl7.fhir.exceptions.FHIRException - Throws:
IOExceptionorg.hl7.fhir.exceptions.FHIRException
-
codeForAggregation
-
hintForAggregation
-
tail
-
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) throws IOException, org.hl7.fhir.exceptions.FHIRException - Throws:
IOExceptionorg.hl7.fhir.exceptions.FHIRException
-
formatTypeSpecifiers
-
generateExtensionTable
public org.hl7.fhir.utilities.xhtml.XhtmlNode generateExtensionTable(String defFile, StructureDefinition ed, String imageFolder, boolean inlineGraphics, boolean full, String corePath, String imagePath, Set<String> outputTracker, RenderingContext rc, String defPath, String anchorPrefix) throws IOException, org.hl7.fhir.exceptions.FHIRException - Throws:
IOExceptionorg.hl7.fhir.exceptions.FHIRException
-
renderDict
public void renderDict(StructureDefinition sd, List<ElementDefinition> elements, org.hl7.fhir.utilities.xhtml.XhtmlNode t, boolean incProfiledOut, int mode, String anchorPrefix) 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
-