Package ca.uhn.hl7v2.conf.store
Class ProfileStoreFactory
java.lang.Object
ca.uhn.hl7v2.conf.store.ProfileStoreFactory
Provides access to a (configurable) ProfileStore.
- Author:
- Bryan Tripp
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddCodeStore(CodeStore store) Deprecated.static voidaddCodeStore(CodeStore store, String profileID) Deprecated.static CodeStoregetCodeStore(String profileID, String codeSystem) Deprecated.static ProfileStoreReturns a single configurable instance of a ProfileStore.static voidsetStore(ProfileStore store) Deprecated.use HapiContext to define the ProfileStore to be used
-
Field Details
-
DEFAULT_PROFILE_STORE_DIRECTORY
The default profile store directory
-
-
Method Details
-
getProfileStore
Returns a single configurable instance of a ProfileStore. Configurable by calling setStore(). Defaults to FileProfileStore using the current <hapi.home>/profiles as a base directory Note: not a singleton (by design) in that nothing prevents creation of profile stores by other means. -
setStore
Deprecated.use HapiContext to define the ProfileStore to be usedSets the profile store that will be returned in subsequent calls to getProfileStore(). -
addCodeStore
Deprecated.Registers a code store for use with all profiles. -
addCodeStore
Deprecated.Registers 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
-
getCodeStore
Deprecated.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. Code stores are checked in the order in which they are added (with addCodeStore()).- Returns:
- null if none are found
-
CodeStoreRegistry.addCodeStore(CodeStore)