Package org.hl7.fhir.dstu3.utils
Class StructureMapUtilities
java.lang.Object
org.hl7.fhir.dstu3.utils.StructureMapUtilities
Services in this class:
string render(map) - take a structure and convert it to text
map parse(text) - take a text representation and parse it
getTargetType(map) - return the definition for the type to create to hand in
transform(appInfo, source, map, target) - transform from source to target following the map
analyse(appInfo, map) - generate profiles and other analysis artifacts for the targets of the transform
map generateMapFromMappings(StructureDefinition) - build a mapping from a structure definition with loigcal mappings
- Author:
- Grahame Grieve
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
class
class
class
class
class
class
class
class
static enum
class
class
-
Field Summary
-
Constructor Summary
ConstructorDescriptionStructureMapUtilities
(IWorkerContext worker) StructureMapUtilities
(IWorkerContext worker, Map<String, StructureMap> library) StructureMapUtilities
(IWorkerContext worker, Map<String, StructureMap> library, StructureMapUtilities.ITransformerServices services) StructureMapUtilities
(IWorkerContext worker, Map<String, StructureMap> library, StructureMapUtilities.ITransformerServices services, ProfileUtilities.ProfileKnowledgeProvider pkp) StructureMapUtilities
(IWorkerContext worker, StructureMapUtilities.ITransformerServices services) -
Method Summary
Modifier and TypeMethodDescriptionanalyse
(Object appInfo, StructureMap map) Given a structure map, return a set of analyses on it.protected void
getChildrenByName
(Base item, String name, List<Base> result) Given an item, return all the children that conform to the pattern described in name Possible patterns: - a simple name (which may be the base of a name with [] e.g.static String
static String
static String
render
(StructureMap map) static String
static String
static String
void
transform
(Object appInfo, Base source, StructureMap map, Base target) translate
(StructureMapUtilities.TransformContext context, StructureMap map, Base source, String conceptMapUrl, String fieldToReturn)
-
Field Details
-
MAP_WHERE_CHECK
- See Also:
-
MAP_WHERE_EXPRESSION
- See Also:
-
MAP_SEARCH_EXPRESSION
- See Also:
-
MAP_EXPRESSION
- See Also:
-
-
Constructor Details
-
StructureMapUtilities
public StructureMapUtilities(IWorkerContext worker, Map<String, StructureMap> library, StructureMapUtilities.ITransformerServices services, ProfileUtilities.ProfileKnowledgeProvider pkp) -
StructureMapUtilities
public StructureMapUtilities(IWorkerContext worker, Map<String, StructureMap> library, StructureMapUtilities.ITransformerServices services) -
StructureMapUtilities
-
StructureMapUtilities
-
StructureMapUtilities
public StructureMapUtilities(IWorkerContext worker, StructureMapUtilities.ITransformerServices services)
-
-
Method Details
-
render
-
groupToString
-
ruleToString
-
sourceToString
-
targetToString
-
paramToString
-
parse
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
getTargetType
public StructureDefinition getTargetType(StructureMap map) throws org.hl7.fhir.exceptions.FHIRException - Throws:
org.hl7.fhir.exceptions.FHIRException
-
getChildrenByName
protected void getChildrenByName(Base item, String name, List<Base> result) throws org.hl7.fhir.exceptions.FHIRException Given an item, return all the children that conform to the pattern described in name Possible patterns: - a simple name (which may be the base of a name with [] e.g. value[x]) - a name with a type replacement e.g. valueCodeableConcept - * which means all children - ** which means all descendents- Parameters:
item
-name
-result
-- Throws:
org.hl7.fhir.exceptions.FHIRException
-
transform
public void transform(Object appInfo, Base source, StructureMap map, Base target) throws org.hl7.fhir.exceptions.FHIRException - Throws:
org.hl7.fhir.exceptions.FHIRException
-
translate
public Base translate(StructureMapUtilities.TransformContext context, StructureMap map, Base source, String conceptMapUrl, String fieldToReturn) throws org.hl7.fhir.exceptions.FHIRException - Throws:
org.hl7.fhir.exceptions.FHIRException
-
getLibrary
-
analyse
public StructureMapUtilities.StructureMapAnalysis analyse(Object appInfo, StructureMap map) throws Exception Given a structure map, return a set of analyses on it. Returned: - a list or profiles for what it will create. First profile is the target - a table with a summary (in xhtml) for easy human undertanding of the mapping- Parameters:
appInfo
-map
-- Returns:
- Throws:
Exception
-
generateMapFromMappings
public StructureMap generateMapFromMappings(StructureDefinition sd) throws IOException, org.hl7.fhir.exceptions.FHIRException - Throws:
IOException
org.hl7.fhir.exceptions.FHIRException
-