Class Iti83AuditStrategy
java.lang.Object
org.openehealth.ipf.commons.ihe.core.atna.AuditStrategySupport<T>
org.openehealth.ipf.commons.ihe.fhir.audit.AbstractFhirAuditStrategy<T,IBaseOperationOutcome>
org.openehealth.ipf.commons.ihe.fhir.audit.FhirAuditStrategy<FhirQueryAuditDataset>
org.openehealth.ipf.commons.ihe.fhir.audit.FhirQueryAuditStrategy
org.openehealth.ipf.commons.ihe.fhir.iti83.Iti83AuditStrategy
- All Implemented Interfaces:
AuditStrategy<FhirQueryAuditDataset>
Strategy for auditing ITI-83 transactions
- Since:
- 3.6
- Author:
- Christian Ohr
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionenrichAuditDatasetFromRequest
(FhirQueryAuditDataset auditDataset, Object request, Map<String, Object> parameters) Further enrich the audit dataset: add query string and patient IDs in the search parameter (if available).boolean
enrichAuditDatasetFromResponse
(FhirQueryAuditDataset auditDataset, Object response, AuditContext auditContext) Enriches the given audit dataset with transaction-specific contents of the response message.makeAuditMessage
(AuditContext auditContext, FhirQueryAuditDataset auditDataset) Constructs anAuditMessage
from a providedAuditDataset
Methods inherited from class org.openehealth.ipf.commons.ihe.fhir.audit.FhirQueryAuditStrategy
createAuditDataset
Methods inherited from class org.openehealth.ipf.commons.ihe.fhir.audit.FhirAuditStrategy
getEventOutcomeCodeFromOperationOutcome, getEventOutcomeDescriptionFromOperationOutcome
Methods inherited from class org.openehealth.ipf.commons.ihe.fhir.audit.AbstractFhirAuditStrategy
getEventOutcomeCodeFromResource, getEventOutcomeDescription, getEventOutcomeIndicator
Methods inherited from class org.openehealth.ipf.commons.ihe.core.atna.AuditStrategySupport
doAudit, getEventOutcomeDescription, getEventOutcomeIndicator, isAuditableResponse, isServerSide
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.openehealth.ipf.commons.ihe.core.atna.AuditStrategy
enrichAuditDatasetFromResponse
-
Constructor Details
-
Iti83AuditStrategy
public Iti83AuditStrategy(boolean serverSide)
-
-
Method Details
-
makeAuditMessage
public AuditMessage[] makeAuditMessage(AuditContext auditContext, FhirQueryAuditDataset auditDataset) Description copied from class:AuditStrategySupport
Constructs anAuditMessage
from a providedAuditDataset
- Specified by:
makeAuditMessage
in classAuditStrategySupport<FhirQueryAuditDataset>
- Parameters:
auditContext
- audit contextauditDataset
- audit dataset- Returns:
- audit message
-
enrichAuditDatasetFromRequest
public FhirQueryAuditDataset enrichAuditDatasetFromRequest(FhirQueryAuditDataset auditDataset, Object request, Map<String, Object> parameters) Description copied from class:FhirQueryAuditStrategy
Further enrich the audit dataset: add query string and patient IDs in the search parameter (if available).- Specified by:
enrichAuditDatasetFromRequest
in interfaceAuditStrategy<FhirQueryAuditDataset>
- Overrides:
enrichAuditDatasetFromRequest
in classFhirQueryAuditStrategy
- Parameters:
auditDataset
- audit datasetrequest
- request objectparameters
- request parameters- Returns:
- enriched audit dataset
-
enrichAuditDatasetFromResponse
public boolean enrichAuditDatasetFromResponse(FhirQueryAuditDataset auditDataset, Object response, AuditContext auditContext) Description copied from interface:AuditStrategy
Enriches the given audit dataset with transaction-specific contents of the response message.- Specified by:
enrichAuditDatasetFromResponse
in interfaceAuditStrategy<FhirQueryAuditDataset>
- Overrides:
enrichAuditDatasetFromResponse
in classAbstractFhirAuditStrategy<FhirQueryAuditDataset,
IBaseOperationOutcome> - Parameters:
auditDataset
- audit dataset to be enriched.response
-Object
representing the responded resource.auditContext
- audit context, if relevant- Returns:
- true if response indicates success, false otherwise
-