Package ca.uhn.hl7v2.conf.store
Class ProfileCodeStore
java.lang.Object
ca.uhn.hl7v2.conf.store.AbstractCodeStore
ca.uhn.hl7v2.conf.store.ProfileCodeStore
- All Implemented Interfaces:
CodeStore
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 Summary
ConstructorsConstructorDescriptionProfileCodeStore(String uri) Creates a ProfileCodeStore object that uses tables found in an 'spec xml tables only' xml doc specified by the input URI.ProfileCodeStore(URL url) As string constructor but accepts a URL object -
Method Summary
Modifier and TypeMethodDescriptionString[]getValidCodes(String codeSystem) Retrieves all codes for a given conformance profile and codeSystem.booleanknowsCodes(String codeSystem) Validates the codeSystem against the input conformance profile.Methods inherited from class ca.uhn.hl7v2.conf.store.AbstractCodeStore
isValidCode
-
Constructor Details
-
ProfileCodeStore
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.- Parameters:
uri- the location of the specification XML file- Throws:
ProfileExceptionIOException
-
ProfileCodeStore
As string constructor but accepts a URL object- Throws:
ProfileExceptionIOException
-
-
Method Details
-
getValidCodes
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
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
-