Class SystemMapper

java.lang.Object
org.projecthusky.fhir.structures.utils.SystemMapper

public class SystemMapper extends Object
A mapper for system OIDs and URIs.

A list of systems is available on HL7 FHIR website.

Author:
Quentin Ligier
  • Method Details

    • findByUri

      public static @Nullable SystemMapper.SystemEntry findByUri(String uri)
      Finds a system by its URI.
      Parameters:
      uri - The non-null system URI.
      Returns:
      the SystemMapper.SystemEntry found or null.
    • findByOid

      public static @Nullable SystemMapper.SystemEntry findByOid(String oid)
      Finds a system by its OID.
      Parameters:
      oid - The non-null system OID.
      Returns:
      the SystemMapper.SystemEntry found or null.
    • findByName

      public static @Nullable SystemMapper.SystemEntry findByName(String name)
      Finds a system by its name.
      Parameters:
      name - The non-null system name.
      Returns:
      the SystemMapper.SystemEntry found or null.
    • hasUri

      public static boolean hasUri(String uri)
      Checks if a known system uses the given URI.
      Parameters:
      uri - The system URI to check.
      Returns:
      true if a known system uses the given URI, false otherwise.
    • hasOid

      public static boolean hasOid(String oid)
      Checks if a known system uses the given OID.
      Parameters:
      oid - The system OID to check.
      Returns:
      true if a known system uses the given OID, false otherwise.
    • hasName

      public static boolean hasName(String name)
      Checks if a known system uses the given name.
      Parameters:
      name - The system name to check.
      Returns:
      true if a known system uses the given name, false otherwise.