Package org.hl7.fhir.r5.renderers
Class StructureDefinitionRenderer
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
org.hl7.fhir.r5.renderers.StructureDefinitionRenderer
- All Implemented Interfaces:
CodeResolver
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.hl7.fhir.r5.renderers.ResourceRenderer
ResourceRenderer.RendererTypeNested classes/interfaces inherited from class org.hl7.fhir.r5.utils.TranslatingUtilities
TranslatingUtilities.TranslationServicesNested classes/interfaces inherited from interface org.hl7.fhir.r5.renderers.CodeResolver
CodeResolver.CodeResolution -
Field Summary
FieldsFields inherited from class org.hl7.fhir.r5.renderers.ResourceRenderer
rcontext, xverManagerFields 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
ConstructorsConstructorDescriptionStructureDefinitionRenderer(RenderingContext context, Resolver.ResourceContext rcontext) -
Method Summary
Modifier and TypeMethodDescriptionvoiddescribe(org.hl7.fhir.utilities.xhtml.XhtmlNode x, StructureDefinition sd) static StringformatTypeSpecifiers(IWorkerContext context, ElementDefinition d) 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) 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, ElementDefinition valueDefn, boolean snapshot, boolean mustSupportOnly, boolean allowSubRows, RenderingContext rc) 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) 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) 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) booleanbooleanprotected booleanisPrimitive(String value) booleanbooleanrender(org.hl7.fhir.utilities.xhtml.XhtmlNode x, StructureDefinition sd) voidscanBindings(Set<String> cols, List<ElementDefinition> list, ElementDefinition ed) protected StringMethods inherited from class org.hl7.fhir.r5.renderers.ResourceRenderer
build, canRender, describe, describe, describeStatus, displayReference, fetchResource, generateCopyright, getProperty, getProperty, getRcontext, getRendererType, inject, makeIdFromBundleEntry, makeInternalBundleLink, parseType, render, render, render, render, render, renderCanonical, renderCanonical, renderCanonical, renderCommitteeLink, renderOrError, renderReference, renderReference, renderReference, renderReference, renderResourceHeader, resolveReference, setRcontext, valuedMethods 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, resolveCode, resolveCode, resolveCode, smartAddText, systemFromCanonical, translate, versionFromCanonicalMethods inherited from class org.hl7.fhir.r5.renderers.Renderer
formatMessageMethods inherited from class org.hl7.fhir.r5.utils.TranslatingUtilities
egtMethods inherited from class org.hl7.fhir.utilities.TranslatingUtilities
getTranslator, hasTranslator, setTranslator, toStr, toStr, translate
-
Field Details
-
CONSTRAINT_CHAR
- See Also:
-
CONSTRAINT_STYLE
- See Also:
-
-
Constructor Details
-
StructureDefinitionRenderer
-
StructureDefinitionRenderer
-
-
Method Details
-
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) -
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) 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, ElementDefinition valueDefn, boolean snapshot, boolean mustSupportOnly, boolean allowSubRows, RenderingContext rc) throws IOException, org.hl7.fhir.exceptions.FHIRException - Throws:
IOExceptionorg.hl7.fhir.exceptions.FHIRException
-
codeForAggregation
-
hintForAggregation
-
tail
-
isPrimitive
-
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) throws IOException, org.hl7.fhir.exceptions.FHIRException - Throws:
IOExceptionorg.hl7.fhir.exceptions.FHIRException
-