Package com.ibm.fhir.search.compartment
Class CompartmentCache
- java.lang.Object
-
- com.ibm.fhir.search.compartment.CompartmentCache
-
public class CompartmentCache extends Object
Compartment Cache is a localized class to cache the compartment information and provide helper methods to add to the cache.
-
-
Constructor Summary
Constructors Constructor Description CompartmentCache()
constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(String inclusionResourceCode, List<String> params)
add the code and parameters to the given compartment cache.List<String>
getParametersByResourceTypeInCompartment(String resourceType)
get parameters by resource type in the compartment cache.List<String>
getResourceTypesInCompartment()
gets the resource types (codes) in the compartment
-
-
-
Method Detail
-
add
public void add(String inclusionResourceCode, List<String> params)
add the code and parameters to the given compartment cache.- Parameters:
inclusionResourceCode
- the name of the resource type that can be within the target compartment typeparams
- the inclusion criteria used to determine whether a resource of typeinclusionResourceCode
is in a target compartment
-
getResourceTypesInCompartment
public List<String> getResourceTypesInCompartment()
gets the resource types (codes) in the compartment- Returns:
-
-