Interface TerminologyProvider


public interface TerminologyProvider
  • Method Summary

    Modifier and Type
    Method
    Description
    expand(ValueSetInfo valueSet)
    Expands the set of Codes for a given ValueSetInfo
    boolean
    in(Code code, ValueSetInfo valueSet)
    Checks if a given Code is a member of a given ValueSetInfo
    lookup(Code code, CodeSystemInfo codeSystem)
    Looks up the display value for a given Code from a given CodeSystemInfo
  • Method Details

    • in

      boolean in(Code code, ValueSetInfo valueSet)
      Checks if a given Code is a member of a given ValueSetInfo
      Parameters:
      code - the code to check
      valueSet - the valueSet to check
      Returns:
      true if code is a member of the ValueSet
      Throws:
      TerminologyProviderException - if there's an exception during the membership check
    • expand

      Iterable<Code> expand(ValueSetInfo valueSet)
      Expands the set of Codes for a given ValueSetInfo
      Parameters:
      valueSet - the ValueSetInfo to expand
      Returns:
      the set of Codes
      Throws:
      TerminologyProviderException - if there's an error during expansion
    • lookup

      Code lookup(Code code, CodeSystemInfo codeSystem)
      Looks up the display value for a given Code from a given CodeSystemInfo
      Parameters:
      code - the Code to look up
      codeSystem - the CodeSystemInfo to look up from
      Returns:
      the Code with the display value filled
      Throws:
      TerminologyProviderException - if there's an error during lookup