Class ResourceCompartmentCache
- java.lang.Object
- 
- org.linuxforhealth.fhir.search.compartment.ResourceCompartmentCache
 
- 
 public class ResourceCompartmentCache extends java.lang.ObjectInformation about a specific resource type and which compartments it can be within.
- 
- 
Constructor SummaryConstructors Constructor Description ResourceCompartmentCache()constructor
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(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- 
addpublic 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 names
- compartmentName- the compartment associated with these parameters
 
 - 
getCompartmentReferenceParamspublic java.util.Map<java.lang.String,java.util.Set<java.lang.String>> getCompartmentReferenceParams() Getter for the set of parameters referencing compartments- Returns:
 
 
- 
 
-