Class ResourceCompartmentCache


  • public class ResourceCompartmentCache
    extends Object
    Resource Compartment Cache is a localized class to cache the compartment information for a specific resource type
    • Constructor Detail

      • ResourceCompartmentCache

        public ResourceCompartmentCache()
        constructor
    • Method Detail

      • add

        public void add​(List<String> params,
                        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
      • getCompartmentReferenceParams

        public Map<String,​Set<String>> getCompartmentReferenceParams()
        Getter for the set of parameters referencing compartments
        Returns: