Class ProfileCodeStore

java.lang.Object
ca.uhn.hl7v2.conf.store.AbstractCodeStore
ca.uhn.hl7v2.conf.store.ProfileCodeStore
All Implemented Interfaces:
CodeStore

public class ProfileCodeStore extends AbstractCodeStore
This particular implementation of CodeStore retrieves valid codes and validates codeSystems using tables found in 'spec xml tables only' docs generated from the HL7 Messaging Workbench tool. Note: The codeSystem parameter value used in the following methods must be a concatenation of a coding authority and coding table number that is 4 digits long. Note: The current implementation only accepts a coding authority of HL7
Author:
Neal Acharya, Christian Ohr
  • Constructor Details

  • Method Details

    • getValidCodes

      public String[] getValidCodes(String codeSystem) throws ProfileException
      Retrieves all codes for a given conformance profile and codeSystem. Note: The codeSystem parameter value must be a concatenation of a coding authority and coding table number that is 4 digits long. Note: The current implementation only accepts a coding authority of HL7
      Parameters:
      codeSystem -
      Returns:
      String[]
      Throws:
      ProfileException
    • knowsCodes

      public boolean knowsCodes(String codeSystem)
      Validates the codeSystem against the input conformance profile. If valid then output is 'true' else 'false'. Note: The codeSystem parameter value must be a concatenation of a coding authority and coding table number that is 4 digits long. Note: The current implementation only accepts a coding authority of HL7
      Parameters:
      codeSystem -
      Returns:
      boolean