Class CodingUtilities

java.lang.Object
org.hl7.fhir.r5.utils.CodingUtilities

public class CodingUtilities extends Object
  • Constructor Details

  • Method Details

    • matches

      public static boolean matches(Coding coding, String system, String code)
    • present

      public static String present(Coding coding)
    • filterEquals

      public static boolean filterEquals(Coding c, String fmt)
      Parameters:
      c - the coding to compare
      fmt - the format is [system](|[version])#[code], no display
      Returns:
      whether the code conforms to the filter
    • filterMatches

      public static boolean filterMatches(Coding c, String fmt)
      Parameters:
      c - the coding to compare
      fmt - the format is [system](|[version])#[code], no display
      Returns:
      whether the code conforms to the filter using regex
    • filterInList

      public static boolean filterInList(Coding c, String[] values)
      Parameters:
      c - the coding to compare
      values - a list of values, the format is [system](|[version])#[code], no display
      Returns:
      whether the code conforms to the filter using regex