Package org.hl7.fhir.r5.conformance
Class ProfileUtilities
- java.lang.Object
-
- org.hl7.fhir.utilities.TranslatingUtilities
-
- org.hl7.fhir.r5.utils.TranslatingUtilities
-
- org.hl7.fhir.r5.conformance.ProfileUtilities
-
public class ProfileUtilities extends TranslatingUtilities
This class provides a set of utility operations for working with Profiles. Key functionality: * getChildMap --? * getChildList * generateSnapshot: Given a base (snapshot) profile structure, and a differential profile, generate a new snapshot profile * closeDifferential: fill out a differential by excluding anything not mentioned * generateExtensionsTable: generate the HTML for a hierarchical table presentation of the extensions * generateTable: generate the HTML for a hierarchical table presentation of a structure * generateSpanningTable: generate the HTML for a table presentation of a network of structures, starting at a nominated point * summarize: describe the contents of a profile note to maintainers: Do not make modifications to the snapshot generation without first changing the snapshot generation test cases to demonstrate the grounds for your change- Author:
- Grahame
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classProfileUtilities.BaseTypeSlicestatic classProfileUtilities.ElementChoiceGroupstatic classProfileUtilities.ElementDefinitionComparerstatic classProfileUtilities.ElementDefinitionHolderclassProfileUtilities.ElementDefinitionResolutionclassProfileUtilities.ElementRedirectionclassProfileUtilities.ExtensionContextstatic interfaceProfileUtilities.ProfileKnowledgeProviderclassProfileUtilities.SliceListclassProfileUtilities.SpanEntryclassProfileUtilities.TypeSlicestatic classProfileUtilities.UnusedTracker-
Nested classes/interfaces inherited from class org.hl7.fhir.r5.utils.TranslatingUtilities
TranslatingUtilities.TranslationServices
-
-
Field Summary
Fields Modifier and Type Field Description static StringDERIVATION_POINTERstatic StringIS_DERIVEDstatic intSTATUS_ERRORstatic intSTATUS_FATALstatic intSTATUS_HINTstatic intSTATUS_OKstatic intSTATUS_WARNINGstatic StringUD_ERROR_STATUS
-
Constructor Summary
Constructors Constructor Description ProfileUtilities(IWorkerContext context, List<org.hl7.fhir.utilities.validation.ValidationMessage> messages, ProfileUtilities.ProfileKnowledgeProvider pkp)ProfileUtilities(IWorkerContext context, List<org.hl7.fhir.utilities.validation.ValidationMessage> messages, ProfileUtilities.ProfileKnowledgeProvider pkp, FHIRPathEngine fpe)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static booleanallProfilesMustSupport(List<CanonicalType> profiles)static booleanallTypesMustSupport(ElementDefinition e)static StringbuildR2Discriminator(ElementDefinition.ElementDefinitionSlicingDiscriminatorComponent t)voidcheckDifferentialBaseType(StructureDefinition derived)voidcheckForChildrenInGroup(StructureDefinition derived, List<ElementDefinition> toRemove, ElementDefinition element)voidcheckTypeDerivation(String purl, StructureDefinition srcSD, ElementDefinition base, ElementDefinition derived, ElementDefinition.TypeRefComponent ts)voidcheckTypeOk(ElementDefinition dest, String ft, StructureDefinition sd)voidcleanUpDifferential(StructureDefinition sd)voidcloseDifferential(StructureDefinition base, StructureDefinition derived)static StringdescribeExtensionContext(StructureDefinition ext)StringdescribeSlice(ElementDefinition.ElementDefinitionSlicingComponent slicing)StringdetermineFixedType(List<ElementDefinition> diffMatches, String fixedType, int i)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, ProfileUtilities.UnusedTracker used, String ref, String sName, org.hl7.fhir.utilities.xhtml.HierarchicalTableGenerator.Cell nameCell, boolean mustSupport, boolean allowSubRows)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, ProfileUtilities.UnusedTracker used, String ref, String sName)voidgenerateCsvs(OutputStream dest, StructureDefinition structure, boolean asXml)List<Element>generateExamples(StructureDefinition sd, boolean evenWhenNoExamples)org.hl7.fhir.utilities.xhtml.XhtmlNodegenerateExtensionTable(String defFile, StructureDefinition ed, String imageFolder, boolean inlineGraphics, boolean full, String corePath, String imagePath, Set<String> outputTracker)org.hl7.fhir.utilities.xhtml.XhtmlNodegenerateGrid(String defFile, StructureDefinition profile, String imageFolder, boolean inlineGraphics, String profileBaseFileName, String corePath, String imagePath, Set<String> outputTracker)voidgenerateSchematrons(OutputStream dest, StructureDefinition structure)voidgenerateSnapshot(StructureDefinition base, StructureDefinition derived, String url, String webUrl, String profileName)Given a base (snapshot) profile structure, and a differential profile, generate a new snapshot profileorg.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 active, boolean mustSupport)voidgenTargetLink(org.hl7.fhir.utilities.xhtml.HierarchicalTableGenerator gen, String profileBaseFileName, String corePath, org.hl7.fhir.utilities.xhtml.HierarchicalTableGenerator.Cell c, ElementDefinition.TypeRefComponent t, String u)List<ElementDefinition>getChildList(StructureDefinition profile, String path, String id)Given a Structure, navigate to the element given by the path and return the direct children of that elementList<ElementDefinition>getChildList(StructureDefinition profile, String path, String id, boolean diff)List<ElementDefinition>getChildList(StructureDefinition profile, String path, String id, boolean diff, boolean refs)List<ElementDefinition>getChildList(StructureDefinition structure, ElementDefinition element)List<ElementDefinition>getChildList(StructureDefinition structure, ElementDefinition element, boolean diff)List<ElementDefinition>getChildList(StructureDefinition structure, ElementDefinition element, boolean diff, boolean refs)List<ElementDefinition>getChildMap(StructureDefinition profile, ElementDefinition element)ProfileUtilities.ElementDefinitionComparergetComparer(ProfileUtilities.ElementDefinitionComparer cmp, ProfileUtilities.ElementDefinitionHolder child)StringgetDefWebRoot()Set<String>getMasterSourceFileNames()StructureDefinitiongetProfile(StructureDefinition source, String url)StringgetRowColor(ElementDefinition element, boolean isConstraintMode)List<ElementDefinition>getSliceList(StructureDefinition profile, ElementDefinition element)org.hl7.fhir.utilities.validation.ValidationOptionsgetTerminologyServiceOptions()StructureDefinitiongetTypeForElement(StructureDefinition.StructureDefinitionDifferentialComponent differential, int diffCursor, String profileName, List<ElementDefinition> diffMatches, ElementDefinition outcome)XVerExtensionManagergetXver()org.hl7.fhir.utilities.xhtml.HierarchicalTableGenerator.TableModelinitSpanningTable(org.hl7.fhir.utilities.xhtml.HierarchicalTableGenerator gen, String prefix, boolean isLogical, String id)static ElementDefinition.ElementDefinitionSlicingDiscriminatorComponentinterpretR2Discriminator(String discriminator, boolean isExists)booleanisAutoFixSliceNames()booleanisDebug()booleanisIgmode()static booleanisLikelySourceURLReference(String url, List<String> resourceNames, Set<String> filenames)static booleanisMustSupport(List<CanonicalType> profiles)static booleanisMustSupport(CanonicalType profile)static booleanisMustSupport(ElementDefinition.TypeRefComponent tr)static booleanisMustSupportDirect(ElementDefinition.TypeRefComponent tr)booleanisNewSlicingProcessing()booleanisPrimitive(String value)booleanisSameBase(String p, String sp)booleanisThrowException()booleanisWantFixDifferentialFirstElementType()static StructureDefinitionmakeBaseDefinition(Enumerations.FHIRVersion fhirVersion)static StructureDefinitionmakeExtensionForVersionedURL(IWorkerContext context, String url)voidpopulateLogicalSnapshot(StructureDefinition sd)static StringprocessRelativeUrls(String markdown, String webUrl, String basePath, List<String> resourceNames, Set<String> filenames)List<ProfileUtilities.ElementChoiceGroup>readChoices(ElementDefinition ed, List<ElementDefinition> children)ProfileUtilities.ElementDefinitionResolutionresolveContentRef(StructureDefinition structure, ElementDefinition element)static StringsdNs(String type, String overrideVersionNs)ProfileUtilitiessetAutoFixSliceNames(boolean autoFixSliceNames)voidsetDebug(boolean debug)voidsetDefWebRoot(String defWebRoot)voidsetIds(StructureDefinition sd, boolean checkFirst)voidsetIgmode(boolean igmode)voidsetMasterSourceFileNames(Set<String> masterSourceFileNames)voidsetNewSlicingProcessing(boolean newSlicingProcessing)voidsetTerminologyServiceOptions(org.hl7.fhir.utilities.validation.ValidationOptions terminologyServiceOptions)voidsetThrowException(boolean exception)voidsetWantFixDifferentialFirstElementType(boolean wantFixDifferentialFirstElementType)ProfileUtilitiessetXver(XVerExtensionManager xver)voidsortDifferential(StructureDefinition base, StructureDefinition diff, String name, List<String> errors, boolean errorIfChanges)static StringsummarizeSlicing(ElementDefinition.ElementDefinitionSlicingComponent slice)static StringtypeCode(List<ElementDefinition.TypeRefComponent> types)voidupdateMaps(StructureDefinition base, StructureDefinition derived)-
Methods inherited from class org.hl7.fhir.r5.utils.TranslatingUtilities
egt, gt
-
-
-
-
Field Detail
-
STATUS_OK
public static final int STATUS_OK
- See Also:
- Constant Field Values
-
STATUS_HINT
public static final int STATUS_HINT
- See Also:
- Constant Field Values
-
STATUS_WARNING
public static final int STATUS_WARNING
- See Also:
- Constant Field Values
-
STATUS_ERROR
public static final int STATUS_ERROR
- See Also:
- Constant Field Values
-
STATUS_FATAL
public static final int STATUS_FATAL
- See Also:
- Constant Field Values
-
DERIVATION_POINTER
public static final String DERIVATION_POINTER
- See Also:
- Constant Field Values
-
IS_DERIVED
public static final String IS_DERIVED
- See Also:
- Constant Field Values
-
UD_ERROR_STATUS
public static final String UD_ERROR_STATUS
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ProfileUtilities
public ProfileUtilities(IWorkerContext context, List<org.hl7.fhir.utilities.validation.ValidationMessage> messages, ProfileUtilities.ProfileKnowledgeProvider pkp, FHIRPathEngine fpe)
-
ProfileUtilities
public ProfileUtilities(IWorkerContext context, List<org.hl7.fhir.utilities.validation.ValidationMessage> messages, ProfileUtilities.ProfileKnowledgeProvider pkp)
-
-
Method Detail
-
isIgmode
public boolean isIgmode()
-
setIgmode
public void setIgmode(boolean igmode)
-
isWantFixDifferentialFirstElementType
public boolean isWantFixDifferentialFirstElementType()
-
setWantFixDifferentialFirstElementType
public void setWantFixDifferentialFirstElementType(boolean wantFixDifferentialFirstElementType)
-
isAutoFixSliceNames
public boolean isAutoFixSliceNames()
-
setAutoFixSliceNames
public ProfileUtilities setAutoFixSliceNames(boolean autoFixSliceNames)
-
getChildMap
public List<ElementDefinition> getChildMap(StructureDefinition profile, ElementDefinition element) throws org.hl7.fhir.exceptions.DefinitionException
- Throws:
org.hl7.fhir.exceptions.DefinitionException
-
getSliceList
public List<ElementDefinition> getSliceList(StructureDefinition profile, ElementDefinition element) throws org.hl7.fhir.exceptions.DefinitionException
- Throws:
org.hl7.fhir.exceptions.DefinitionException
-
getChildList
public List<ElementDefinition> getChildList(StructureDefinition profile, String path, String id)
Given a Structure, navigate to the element given by the path and return the direct children of that element- Parameters:
structure- The structure to navigate intopath- The path of the element within the structure to get the children for- Returns:
- A List containing the element children (all of them are Elements)
-
getChildList
public List<ElementDefinition> getChildList(StructureDefinition profile, String path, String id, boolean diff)
-
getChildList
public List<ElementDefinition> getChildList(StructureDefinition profile, String path, String id, boolean diff, boolean refs)
-
getChildList
public List<ElementDefinition> getChildList(StructureDefinition structure, ElementDefinition element, boolean diff, boolean refs)
-
getChildList
public List<ElementDefinition> getChildList(StructureDefinition structure, ElementDefinition element, boolean diff)
-
getChildList
public List<ElementDefinition> getChildList(StructureDefinition structure, ElementDefinition element)
-
updateMaps
public void updateMaps(StructureDefinition base, StructureDefinition derived) throws org.hl7.fhir.exceptions.DefinitionException
- Throws:
org.hl7.fhir.exceptions.DefinitionException
-
generateSnapshot
public void generateSnapshot(StructureDefinition base, StructureDefinition derived, String url, String webUrl, String profileName) throws org.hl7.fhir.exceptions.DefinitionException, org.hl7.fhir.exceptions.FHIRException
Given a base (snapshot) profile structure, and a differential profile, generate a new snapshot profile- Parameters:
base- - the base structure on which the differential will be applieddifferential- - the differential to apply to the baseurl- - where the base has relative urls for profile references, these need to be converted to absolutes by prepending this URL (e.g. the canonical URL)webUrl- - where the base has relative urls in markdown, these need to be converted to absolutes by prepending this URL (this is not the same as the canonical URL)trimDifferential- - if this is true, then the snap short generator will remove any material in the element definitions that is not different to the base- Throws:
org.hl7.fhir.exceptions.FHIRExceptionorg.hl7.fhir.exceptions.DefinitionExceptionException
-
checkDifferentialBaseType
public void checkDifferentialBaseType(StructureDefinition derived) throws Error
- Throws:
Error
-
checkForChildrenInGroup
public void checkForChildrenInGroup(StructureDefinition derived, List<ElementDefinition> toRemove, ElementDefinition element) throws Error
- Throws:
Error
-
getTypeForElement
public StructureDefinition getTypeForElement(StructureDefinition.StructureDefinitionDifferentialComponent differential, int diffCursor, String profileName, List<ElementDefinition> diffMatches, ElementDefinition outcome)
-
determineFixedType
public String determineFixedType(List<ElementDefinition> diffMatches, String fixedType, int i)
-
summarizeSlicing
public static String summarizeSlicing(ElementDefinition.ElementDefinitionSlicingComponent slice)
-
typeCode
public static String typeCode(List<ElementDefinition.TypeRefComponent> types)
-
processRelativeUrls
public static String processRelativeUrls(String markdown, String webUrl, String basePath, List<String> resourceNames, Set<String> filenames)
-
isLikelySourceURLReference
public static boolean isLikelySourceURLReference(String url, List<String> resourceNames, Set<String> filenames)
-
isSameBase
public boolean isSameBase(String p, String sp)
-
checkTypeDerivation
public void checkTypeDerivation(String purl, StructureDefinition srcSD, ElementDefinition base, ElementDefinition derived, ElementDefinition.TypeRefComponent ts)
-
checkTypeOk
public void checkTypeOk(ElementDefinition dest, String ft, StructureDefinition sd)
-
closeDifferential
public void closeDifferential(StructureDefinition base, StructureDefinition derived) throws org.hl7.fhir.exceptions.FHIRException
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
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) throws IOException, org.hl7.fhir.exceptions.FHIRException
- Throws:
IOExceptionorg.hl7.fhir.exceptions.FHIRException
-
genTargetLink
public void genTargetLink(org.hl7.fhir.utilities.xhtml.HierarchicalTableGenerator gen, String profileBaseFileName, String corePath, org.hl7.fhir.utilities.xhtml.HierarchicalTableGenerator.Cell c, ElementDefinition.TypeRefComponent t, String u)
-
describeExtensionContext
public static String describeExtensionContext(StructureDefinition ext)
-
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 active, boolean mustSupport) throws IOException, org.hl7.fhir.exceptions.FHIRException
- Throws:
IOExceptionorg.hl7.fhir.exceptions.FHIRException
-
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
-
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, ProfileUtilities.UnusedTracker used, String ref, String sName) 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, ProfileUtilities.UnusedTracker used, String ref, String sName, org.hl7.fhir.utilities.xhtml.HierarchicalTableGenerator.Cell nameCell, boolean mustSupport, boolean allowSubRows) throws IOException
- Throws:
IOException
-
getRowColor
public String getRowColor(ElementDefinition element, boolean isConstraintMode)
-
describeSlice
public String describeSlice(ElementDefinition.ElementDefinitionSlicingComponent slicing)
-
isPrimitive
public boolean isPrimitive(String value)
-
getProfile
public StructureDefinition getProfile(StructureDefinition source, String url)
-
sortDifferential
public void sortDifferential(StructureDefinition base, StructureDefinition diff, String name, List<String> errors, boolean errorIfChanges) throws org.hl7.fhir.exceptions.FHIRException
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
getComparer
public ProfileUtilities.ElementDefinitionComparer getComparer(ProfileUtilities.ElementDefinitionComparer cmp, ProfileUtilities.ElementDefinitionHolder child) throws org.hl7.fhir.exceptions.FHIRException, Error
- Throws:
org.hl7.fhir.exceptions.FHIRExceptionError
-
generateSchematrons
public void generateSchematrons(OutputStream dest, StructureDefinition structure) throws IOException, org.hl7.fhir.exceptions.DefinitionException
- Throws:
IOExceptionorg.hl7.fhir.exceptions.DefinitionException
-
generateCsvs
public void generateCsvs(OutputStream dest, StructureDefinition structure, boolean asXml) throws IOException, org.hl7.fhir.exceptions.DefinitionException, Exception
- Throws:
IOExceptionorg.hl7.fhir.exceptions.DefinitionExceptionException
-
setIds
public void setIds(StructureDefinition sd, boolean checkFirst) throws org.hl7.fhir.exceptions.DefinitionException
- Throws:
org.hl7.fhir.exceptions.DefinitionException
-
generateExamples
public List<Element> generateExamples(StructureDefinition sd, boolean evenWhenNoExamples) throws org.hl7.fhir.exceptions.FHIRException
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
populateLogicalSnapshot
public void populateLogicalSnapshot(StructureDefinition sd) throws org.hl7.fhir.exceptions.FHIRException
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
cleanUpDifferential
public void cleanUpDifferential(StructureDefinition sd)
-
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
-
initSpanningTable
public org.hl7.fhir.utilities.xhtml.HierarchicalTableGenerator.TableModel initSpanningTable(org.hl7.fhir.utilities.xhtml.HierarchicalTableGenerator gen, String prefix, boolean isLogical, String id)
-
interpretR2Discriminator
public static ElementDefinition.ElementDefinitionSlicingDiscriminatorComponent interpretR2Discriminator(String discriminator, boolean isExists)
-
buildR2Discriminator
public static String buildR2Discriminator(ElementDefinition.ElementDefinitionSlicingDiscriminatorComponent t) throws org.hl7.fhir.exceptions.FHIRException
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
makeExtensionForVersionedURL
public static StructureDefinition makeExtensionForVersionedURL(IWorkerContext context, String url)
-
isThrowException
public boolean isThrowException()
-
setThrowException
public void setThrowException(boolean exception)
-
getTerminologyServiceOptions
public org.hl7.fhir.utilities.validation.ValidationOptions getTerminologyServiceOptions()
-
setTerminologyServiceOptions
public void setTerminologyServiceOptions(org.hl7.fhir.utilities.validation.ValidationOptions terminologyServiceOptions)
-
isNewSlicingProcessing
public boolean isNewSlicingProcessing()
-
setNewSlicingProcessing
public void setNewSlicingProcessing(boolean newSlicingProcessing)
-
isDebug
public boolean isDebug()
-
setDebug
public void setDebug(boolean debug)
-
getDefWebRoot
public String getDefWebRoot()
-
setDefWebRoot
public void setDefWebRoot(String defWebRoot)
-
makeBaseDefinition
public static StructureDefinition makeBaseDefinition(Enumerations.FHIRVersion fhirVersion)
-
getXver
public XVerExtensionManager getXver()
-
setXver
public ProfileUtilities setXver(XVerExtensionManager xver)
-
readChoices
public List<ProfileUtilities.ElementChoiceGroup> readChoices(ElementDefinition ed, List<ElementDefinition> children)
-
allTypesMustSupport
public static boolean allTypesMustSupport(ElementDefinition e)
-
allProfilesMustSupport
public static boolean allProfilesMustSupport(List<CanonicalType> profiles)
-
isMustSupportDirect
public static boolean isMustSupportDirect(ElementDefinition.TypeRefComponent tr)
-
isMustSupport
public static boolean isMustSupport(ElementDefinition.TypeRefComponent tr)
-
isMustSupport
public static boolean isMustSupport(List<CanonicalType> profiles)
-
isMustSupport
public static boolean isMustSupport(CanonicalType profile)
-
resolveContentRef
public ProfileUtilities.ElementDefinitionResolution resolveContentRef(StructureDefinition structure, ElementDefinition element)
-
getMasterSourceFileNames
public Set<String> getMasterSourceFileNames()
-
setMasterSourceFileNames
public void setMasterSourceFileNames(Set<String> masterSourceFileNames)
-
-