Class AtnaMappingFunctions
java.lang.Object
org.openehealth.ipf.commons.ihe.fhir.atna.translation.AtnaMappingFunctions
- All Implemented Interfaces:
MappingFunctionProvider
The mapping functions that
META-INF/map/atna2fhir.mapping.xml refers to. Registered
through the MappingFunctionProvider service so that the mapping file works wherever it
is loaded from.- Since:
- 6.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringName under whichoidUri(String)is registered. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringTurns a bare OID into the URI form FHIR expects, and leaves anything that is not an OID alone.voidregister(MappingFunctionRegistry registry)
-
Field Details
-
OID_URI
-
-
Constructor Details
-
AtnaMappingFunctions
public AtnaMappingFunctions()
-
-
Method Details
-
register
- Specified by:
registerin interfaceMappingFunctionProvider- Parameters:
registry- the registry to add functions to
-
oidUri
Turns a bare OID into the URI form FHIR expects, and leaves anything that is not an OID alone. ATNA code system names are either a known symbolic name - those have an entry in the mapping - or an OID written without itsurn:oid:prefix.- Parameters:
codeSystemName- an ATNA code system name- Returns:
urn:oid:<name>if the name starts with a digit, the name itself otherwise
-