Class ResourceCompartmentCache


  • public class ResourceCompartmentCache
    extends java.lang.Object
    Information about a specific resource type and which compartments it can be within.
    • 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
      • Methods inherited from class java.lang.Object

        clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ResourceCompartmentCache

        public ResourceCompartmentCache()
        constructor
    • 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 names
        compartmentName - 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: