
Package org.hl7.fhir.dstu2.utils
Class ProfileUtilities
java.lang.Object
org.hl7.fhir.dstu2.utils.ProfileUtilities
Deprecated.
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 * generateExtensionsTable: generate the HTML for a
hierarchical table presentation of the extensions * generateTable: generate
the HTML for a hierarchical table presentation of a structure * summarise:
describe the contents of a profile
- Author:
- Grahame
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Deprecated.static class
Deprecated.class
Deprecated.static interface
Deprecated. -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionProfileUtilities
(IWorkerContext context, List<org.hl7.fhir.utilities.validation.ValidationMessage> messages, ProfileUtilities.ProfileKnowledgeProvider pkp) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionstatic String
Deprecated.Deprecated.org.hl7.fhir.utilities.xhtml.XhtmlNode
generateExtensionTable
(String defFile, StructureDefinition ed, String imageFolder, boolean inlineGraphics, boolean full, String corePath, Set<String> outputTracker) Deprecated.void
generateSchematrons
(OutputStream dest, StructureDefinition structure) Deprecated.void
generateSnapshot
(StructureDefinition base, StructureDefinition derived, String url, String profileName) Deprecated.Given a base (snapshot) profile structure, and a differential profile, generate a new snapshot profileorg.hl7.fhir.utilities.xhtml.XhtmlNode
generateTable
(String defFile, StructureDefinition profile, boolean diff, String imageFolder, boolean inlineGraphics, String profileBaseFileName, boolean snapshot, String corePath, Set<String> outputTracker) Deprecated.static List
<ElementDefinition> getChildList
(StructureDefinition profile, String path) Deprecated.Given a Structure, navigate to the element given by the path and return the direct children of that elementstatic List
<ElementDefinition> getChildList
(StructureDefinition structure, ElementDefinition element) Deprecated.static List
<ElementDefinition> getChildMap
(StructureDefinition profile, String name, String path, String nameReference) Deprecated.Given a Structure, navigate to the element given by the path and return the direct children of that elementstatic List
<ElementDefinition> getChildMap
(StructureDefinition profile, ElementDefinition element) Deprecated.getProfile
(StructureDefinition source, String url) Deprecated.static boolean
isPrimitive
(String value) Deprecated.void
sortDifferential
(StructureDefinition base, StructureDefinition diff, String name, List<String> errors) Deprecated.static String
Deprecated.
-
Field Details
-
STATUS_OK
Deprecated.- See Also:
-
STATUS_HINT
Deprecated.- See Also:
-
STATUS_WARNING
Deprecated.- See Also:
-
STATUS_ERROR
Deprecated.- See Also:
-
STATUS_FATAL
Deprecated.- See Also:
-
DERIVATION_POINTER
Deprecated.- See Also:
-
IS_DERIVED
Deprecated.- See Also:
-
UD_ERROR_STATUS
Deprecated.- See Also:
-
-
Constructor Details
-
ProfileUtilities
public ProfileUtilities(IWorkerContext context, List<org.hl7.fhir.utilities.validation.ValidationMessage> messages, ProfileUtilities.ProfileKnowledgeProvider pkp) Deprecated.
-
-
Method Details
-
getChildMap
public static List<ElementDefinition> getChildMap(StructureDefinition profile, String name, String path, String nameReference) throws org.hl7.fhir.exceptions.DefinitionException Deprecated.Given a Structure, navigate to the element given by the path and return the direct children of that element- Parameters:
path
- The path of the element within the structure to get the children forstructure
- The structure to navigate into- Returns:
- A Map containing the name of the element child (not the path) and the child itself (an Element)
- Throws:
org.hl7.fhir.exceptions.DefinitionException
Exception
-
getChildMap
public static List<ElementDefinition> getChildMap(StructureDefinition profile, ElementDefinition element) throws org.hl7.fhir.exceptions.DefinitionException Deprecated.- Throws:
org.hl7.fhir.exceptions.DefinitionException
-
getChildList
Deprecated.Given a Structure, navigate to the element given by the path and return the direct children of that element- Parameters:
path
- The path of the element within the structure to get the children forstructure
- The structure to navigate into- Returns:
- A List containing the element children (all of them are Elements)
-
getChildList
public static List<ElementDefinition> getChildList(StructureDefinition structure, ElementDefinition element) Deprecated. -
generateSnapshot
public void generateSnapshot(StructureDefinition base, StructureDefinition derived, String url, String profileName) throws org.hl7.fhir.exceptions.DefinitionException, org.hl7.fhir.exceptions.FHIRException Deprecated.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 appliedurl
- - where the base has relative urls for profile references, these need to be converted to absolutes by prepending this URLdifferential
- - the differential to apply to the basetrimDifferential
- - 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.FHIRException
org.hl7.fhir.exceptions.DefinitionException
Exception
-
typeCode
Deprecated. -
generateExtensionTable
public org.hl7.fhir.utilities.xhtml.XhtmlNode generateExtensionTable(String defFile, StructureDefinition ed, String imageFolder, boolean inlineGraphics, boolean full, String corePath, Set<String> outputTracker) throws IOException, org.hl7.fhir.exceptions.FHIRException Deprecated.- Throws:
IOException
org.hl7.fhir.exceptions.FHIRException
-
describeExtensionContext
Deprecated. -
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, Set<String> outputTracker) throws IOException, org.hl7.fhir.exceptions.FHIRException Deprecated.- Throws:
IOException
org.hl7.fhir.exceptions.FHIRException
-
describeSlice
Deprecated. -
isPrimitive
Deprecated. -
getProfile
Deprecated. -
sortDifferential
public void sortDifferential(StructureDefinition base, StructureDefinition diff, String name, List<String> errors) Deprecated. -
generateSchematrons
public void generateSchematrons(OutputStream dest, StructureDefinition structure) throws IOException, org.hl7.fhir.exceptions.DefinitionException Deprecated.- Throws:
IOException
org.hl7.fhir.exceptions.DefinitionException
-