Class PatientCompartmentEnforcingInterceptor

java.lang.Object
ca.uhn.fhir.jpa.interceptor.PatientCompartmentEnforcingInterceptor

This interceptor can be used to block resource updates which would make resource patient compartment change.

This could be used when the JPA server has partitioning enabled, and Tenant Identification Strategy is PATIENT_ID.

  • Constructor Details

  • Method Details

    • storagePreStorageResourceUpdated

      public void storagePreStorageResourceUpdated(org.hl7.fhir.instance.model.api.IBaseResource theOldResource, org.hl7.fhir.instance.model.api.IBaseResource theResource)
      Blocks resource updates which would make the resource change Patient Compartment.
      Parameters:
      theOldResource - the original resource state
      theResource - the updated resource state