Class CompartmentCache
- java.lang.Object
-
- org.linuxforhealth.fhir.search.compartment.CompartmentCache
-
public class CompartmentCache extends java.lang.Object
Information about a single compartment type.
-
-
Constructor Summary
Constructors Constructor Description CompartmentCache()
constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(java.lang.String inclusionResourceCode, java.util.List<String> params)
Add the code and parameters to the given compartment cache.java.util.Set<java.lang.String>
getParametersByResourceTypeInCompartment(java.lang.String resourceType)
Get parameters by resource type in the compartment cache.java.util.Set<java.lang.String>
getResourceTypesInCompartment()
Get the resource types (codes) that can be in a compartment of this type.
-
-
-
Method Detail
-
add
public void add(java.lang.String inclusionResourceCode, java.util.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 java.util.Set<java.lang.String> getResourceTypesInCompartment()
Get the resource types (codes) that can be in a compartment of this type.- Returns:
-
getParametersByResourceTypeInCompartment
public java.util.Set<java.lang.String> getParametersByResourceTypeInCompartment(java.lang.String resourceType)
Get parameters by resource type in the compartment cache.- Parameters:
resourceType
-- Returns:
-
-