ca.uhn.hl7v2.conf.store
Class ProfileCodeStore

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

public class ProfileCodeStore
extends AbstractCodeStore

Author:
Neal Acharya Created on 27-Aug-2003 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

Constructor Summary
ProfileCodeStore(java.lang.String uri)
           
ProfileCodeStore(java.net.URL url)
          As string constructor but accepts a URL object
 
Method Summary
 java.lang.String[] getValidCodes(java.lang.String codeSystem)
           
 boolean knowsCodes(java.lang.String codeSystem)
           
 
Methods inherited from class ca.uhn.hl7v2.conf.store.AbstractCodeStore
isValidCode
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProfileCodeStore

public ProfileCodeStore(java.lang.String uri)
                 throws ProfileException,
                        java.io.IOException
Parameters:
uri - the location of the specification XML file
Throws:
ProfileException
java.io.IOException - Creates a ProfileCodeStore object that uses tables found in an 'spec xml tables only' xml doc specified by the input URI. The private field member tableDoc is created with content from the xml doc specified by the URI.

ProfileCodeStore

public ProfileCodeStore(java.net.URL url)
                 throws ProfileException,
                        java.io.IOException
As string constructor but accepts a URL object

Throws:
ProfileException
java.io.IOException
Method Detail

getValidCodes

public java.lang.String[] getValidCodes(java.lang.String codeSystem)
                                 throws ProfileException
Parameters:
codeSystem -
Returns:
String[]
Throws:
ProfileException
See Also:
Retreives 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

knowsCodes

public boolean knowsCodes(java.lang.String codeSystem)
Parameters:
codeSystem -
Returns:
boolean
See Also:
Validates the codeSytem 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


Copyright © 2001-2011 University Health Network. All Rights Reserved.