Class ResourceCompartmentCache
- java.lang.Object
-
- org.linuxforhealth.fhir.search.compartment.ResourceCompartmentCache
-
public class ResourceCompartmentCache extends java.lang.Object
Information about a specific resource type and which compartments it can be within.
-
-
Constructor Summary
Constructors Constructor Description ResourceCompartmentCache()
constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(java.util.List<String> params, java.lang.String compartmentName)
Add the parameters which point to the given compartment.java.util.Map<java.lang.String,java.util.Set<java.lang.String>>
getCompartmentReferenceParams()
Getter for the set of parameters referencing compartments
-
-
-
Method Detail
-
add
public void add(java.util.List<String> params, java.lang.String compartmentName)
Add the parameters which point to the given compartment. Note that the same parameter can be used to point to more than compartment, e.g. for CareTeam, the participant parameter may refer to a Patient or a RelatedPerson. In the schema, we therefore have to store (unique) values for this parameter as both patient_compartment and relatedperson_compartment token references.- Parameters:
params
- a list of model parameter namescompartmentName
- the compartment associated with these parameters
-
getCompartmentReferenceParams
public java.util.Map<java.lang.String,java.util.Set<java.lang.String>> getCompartmentReferenceParams()
Getter for the set of parameters referencing compartments- Returns:
-
-