Package ca.uhn.hl7v2.conf.store
Class DefaultCodeStoreRegistry
java.lang.Object
ca.uhn.hl7v2.conf.store.DefaultCodeStoreRegistry
- All Implemented Interfaces:
CodeStoreRegistry
Default Implementation of a
CodeStoreRegistry- Author:
- Christian Ohr
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddCodeStore(CodeStore store) Registers a code store for use with all profiles.voidaddCodeStore(CodeStore store, String profileID) Registers a code store for use with certain profiles.getCodeStore(String profileID, String codeSystem) Returns the first code store that knows the codes in the given code system (as per CodeStore.knowsCodes) and is registered for the given profile.
-
Constructor Details
-
DefaultCodeStoreRegistry
public DefaultCodeStoreRegistry()
-
-
Method Details
-
addCodeStore
Description copied from interface:CodeStoreRegistryRegisters a code store for use with all profiles.- Specified by:
addCodeStorein interfaceCodeStoreRegistry
-
addCodeStore
Description copied from interface:CodeStoreRegistryRegisters a code store for use with certain profiles. The profiles with which the code store are used are determined by profileIdPattern, which is a regular expression that will be matched against profile IDs. For example suppose there are three profiles in the profile store, with the following IDs:- ADT:confsig-UHN-2.4-profile-AL-NE-Immediate
- ADT:confsig-CIHI-2.4-profile-AL-NE-Immediate
- ADT:confsig-CIHI-2.3-profile-AL-NE-Immediate
- Specified by:
addCodeStorein interfaceCodeStoreRegistry
-
getCodeStore
Description copied from interface:CodeStoreRegistryReturns the first code store that knows the codes in the given code system (as per CodeStore.knowsCodes) and is registered for the given profile. Code stores are checked in the order in which they are added (with addCodeStore()).- Specified by:
getCodeStorein interfaceCodeStoreRegistry- Returns:
- null if none are found
-