Interface IAuthRuleBuilderRuleOpClassifier

    • Method Detail

      • inCompartment

        IAuthRuleBuilderRuleOpClassifierFinished inCompartment​(String theCompartmentName,
                                                               org.hl7.fhir.instance.model.api.IIdType theOwner)
        Rule applies to resources in the given compartment.

        For example, to apply the rule to any observations in the patient compartment belonging to patient "123", you would invoke this with
        inCompartment("Patient", new IdType("Patient", "123"))

        This call completes the rule and adds the rule to the chain.

        Parameters:
        theCompartmentName - The name of the compartment (must not be null or blank)
        theOwner - The owner of the compartment. Note that both the resource type and ID must be populated in this ID.
      • inCompartment

        IAuthRuleBuilderRuleOpClassifierFinished inCompartment​(String theCompartmentName,
                                                               Collection<? extends org.hl7.fhir.instance.model.api.IIdType> theOwners)
        Rule applies to resources in the given compartment.

        For example, to apply the rule to any observations in the patient compartment belonging to patient "123", you would invoke this with
        inCompartment("Patient", new IdType("Patient", "123"))

        This call completes the rule and adds the rule to the chain.

        Parameters:
        theCompartmentName - The name of the compartment (must not be null or blank)
        theOwners - The owner of the compartment. Note that both the resource type and ID must be populated in this ID.