Class AtnaMappingFunctions

java.lang.Object
org.openehealth.ipf.commons.ihe.fhir.atna.translation.AtnaMappingFunctions
All Implemented Interfaces:
MappingFunctionProvider

public class AtnaMappingFunctions extends Object implements 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 Details

  • Constructor Details

    • AtnaMappingFunctions

      public AtnaMappingFunctions()
  • Method Details

    • register

      public void register(MappingFunctionRegistry registry)
      Specified by:
      register in interface MappingFunctionProvider
      Parameters:
      registry - the registry to add functions to
    • oidUri

      public static String oidUri(String codeSystemName)
      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 its urn:oid: prefix.
      Parameters:
      codeSystemName - an ATNA code system name
      Returns:
      urn:oid:<name> if the name starts with a digit, the name itself otherwise