Class Iti119ClientAuditStrategy
java.lang.Object
org.openehealth.ipf.commons.ihe.core.atna.AuditStrategySupport<FhirQueryAuditDataset>
org.openehealth.ipf.commons.ihe.fhir.audit.AbstractFhirAuditStrategy<FhirQueryAuditDataset, IBaseOperationOutcome>
org.openehealth.ipf.commons.ihe.fhir.audit.FhirAuditStrategy<FhirQueryAuditDataset>
org.openehealth.ipf.commons.ihe.fhir.audit.FhirQueryAuditStrategy
org.openehealth.ipf.commons.ihe.fhir.iti119.Iti119ClientAuditStrategy
- All Implemented Interfaces:
AuditStrategy<FhirQueryAuditDataset>
Strategy for auditing ITI-119 transactions on the client side
- Since:
- 5.0
- Author:
- Christian Ohr
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionenrichAuditDatasetFromRequest(FhirQueryAuditDataset auditDataset, Object request, Map<String, Object> parameters) Records the$matchrequest body as the query of the transaction.makeAuditMessage(AuditContext auditContext, FhirQueryAuditDataset auditDataset) Constructs anAuditMessagefrom a providedAuditDatasetMethods inherited from class FhirQueryAuditStrategy
createAuditDataset, enrichAuditDatasetFromResponse, patientIdQueryParametersMethods inherited from class FhirAuditStrategy
getEventOutcomeCodeFromOperationOutcome, getEventOutcomeDescriptionFromOperationOutcomeMethods inherited from class AbstractFhirAuditStrategy
doAudit, getEventOutcomeCodeFromResource, getEventOutcomeDescription, getEventOutcomeIndicatorMethods inherited from class AuditStrategySupport
isAuditableResponse, isServerSideMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface AuditStrategy
enrichAuditDatasetFromResponse
-
Constructor Details
-
Iti119ClientAuditStrategy
public Iti119ClientAuditStrategy()
-
-
Method Details
-
makeAuditMessage
public AuditMessage[] makeAuditMessage(AuditContext auditContext, FhirQueryAuditDataset auditDataset) Description copied from class:AuditStrategySupportConstructs anAuditMessagefrom a providedAuditDataset- Specified by:
makeAuditMessagein classAuditStrategySupport<FhirQueryAuditDataset>- Parameters:
auditContext- audit contextauditDataset- audit dataset- Returns:
- audit message
-
enrichAuditDatasetFromRequest
public FhirQueryAuditDataset enrichAuditDatasetFromRequest(FhirQueryAuditDataset auditDataset, Object request, Map<String, Object> parameters) Records the$matchrequest body as the query of the transaction.ITI-119 has no query string: the search criteria travel as a
Parametersresource in the body of a POST. The PDQm audit profiles nevertheless inherit the mandatory query entity of the BALP query pattern, and the AuditEvent examples of the PDQm implementation guide put the encoded request body there -- so that is what is recorded here.The body is assembled the same way the client request factory assembles it, because a route may pass the
Parametersresource, thePatientto match, or endpoint parameters, and all three have to end up audited as the request they turn into.- Specified by:
enrichAuditDatasetFromRequestin interfaceAuditStrategy<FhirQueryAuditDataset>- Overrides:
enrichAuditDatasetFromRequestin classFhirQueryAuditStrategy- Parameters:
auditDataset- audit datasetrequest- request objectparameters- request parameters- Returns:
- enriched audit dataset
-