Package org.hl7.fhir.dstu2016may.utils
Class StructureMapUtilities
- java.lang.Object
-
- org.hl7.fhir.dstu2016may.utils.StructureMapUtilities
-
public class StructureMapUtilities extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceStructureMapUtilities.ITransformerServicesclassStructureMapUtilities.TransformContextclassStructureMapUtilities.Variablestatic classStructureMapUtilities.VariableModeclassStructureMapUtilities.Variables
-
Field Summary
Fields Modifier and Type Field Description static StringMAP_EXPRESSIONstatic StringMAP_WHERE_CHECKstatic StringMAP_WHERE_EXPRESSION
-
Constructor Summary
Constructors Constructor Description StructureMapUtilities(IWorkerContext worker, Map<String,StructureMap> library, StructureMapUtilities.ITransformerServices services)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidgetChildrenByName(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.Map<String,StructureMap>getLibrary()StructureMapparse(String text)Stringrender(StructureMap map)voidtransform(Object appInfo, Base source, StructureMap map, Base target)Basetransform(Base source, StructureMap map)Basetranslate(StructureMapUtilities.TransformContext context, StructureMap map, Base source, String conceptMapUrl, String fieldToReturn)
-
-
-
Field Detail
-
MAP_WHERE_CHECK
public static final String MAP_WHERE_CHECK
- See Also:
- Constant Field Values
-
MAP_WHERE_EXPRESSION
public static final String MAP_WHERE_EXPRESSION
- See Also:
- Constant Field Values
-
MAP_EXPRESSION
public static final String MAP_EXPRESSION
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
StructureMapUtilities
public StructureMapUtilities(IWorkerContext worker, Map<String,StructureMap> library, StructureMapUtilities.ITransformerServices services)
-
-
Method Detail
-
render
public String render(StructureMap map) throws org.hl7.fhir.exceptions.FHIRException
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
parse
public StructureMap parse(String text) 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 Base transform(Base source, StructureMap map)
-
transform
public void transform(Object appInfo, Base source, StructureMap map, Base target) throws Exception
- Throws:
Exception
-
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
public Map<String,StructureMap> getLibrary()
-
-