Class BalpAuditCaptureInterceptor

java.lang.Object
ca.uhn.fhir.storage.interceptor.balp.BalpAuditCaptureInterceptor

public class BalpAuditCaptureInterceptor extends Object
The IHE Basic Audit Logging Pattern (BALP) interceptor can be used to autopmatically generate AuditEvent resources that are conformant to the BALP profile in response to events in a FHIR server. See BALP Interceptor in the HAPI FHIR documentation for more information.
Since:
6.6.0
  • Constructor Details

    • BalpAuditCaptureInterceptor

      public BalpAuditCaptureInterceptor(@Nonnull IBalpAuditEventSink theAuditEventSink, @Nonnull IBalpAuditContextServices theContextServices)
      Constructor
      Parameters:
      theAuditEventSink - This service is the target for generated AuditEvent resources. The BalpAuditCaptureInterceptor does not actually store AuditEvents, it simply generates them when appropriate and passes them to the sink service. The sink service might store them locally, transmit them to a remote repository, or even simply log them to a syslog.
      theContextServices - This service supplies details to the BALP about the context of a given request. For example, in order to generate a conformant AuditEvent resource, this interceptor needs to determine the identity of the user and the client from the RequestDetails object.
  • Method Details

    • setAdditionalPatientCompartmentParamNames

      public void setAdditionalPatientCompartmentParamNames(Set<String> theAdditionalPatientCompartmentParamNames)
    • hookStoragePrecommitResourceCreated

      public void hookStoragePrecommitResourceCreated(org.hl7.fhir.instance.model.api.IBaseResource theResource, ca.uhn.fhir.rest.server.servlet.ServletRequestDetails theRequestDetails)
    • hookStoragePrecommitResourceDeleted

      public void hookStoragePrecommitResourceDeleted(org.hl7.fhir.instance.model.api.IBaseResource theResource, ca.uhn.fhir.rest.server.servlet.ServletRequestDetails theRequestDetails)
    • hookStoragePrecommitResourceUpdated

      public void hookStoragePrecommitResourceUpdated(org.hl7.fhir.instance.model.api.IBaseResource theOldResource, org.hl7.fhir.instance.model.api.IBaseResource theResource, ca.uhn.fhir.rest.server.servlet.ServletRequestDetails theRequestDetails)