Class Hl7v3AuditStrategy
java.lang.Object
org.openehealth.ipf.commons.ihe.core.atna.AuditStrategySupport<Hl7v3AuditDataset>
org.openehealth.ipf.commons.ihe.hl7v3.audit.Hl7v3AuditStrategy
- All Implemented Interfaces:
GroovyObject
,AuditStrategy<Hl7v3AuditDataset>
- Direct Known Subclasses:
Iti44AuditStrategy
,Iti45AuditStrategy
,Iti46AuditStrategy
,Iti47AuditStrategy
,Iti56AuditStrategy
,Pcc1AuditStrategy
public abstract class Hl7v3AuditStrategy
extends AuditStrategySupport<Hl7v3AuditDataset>
implements GroovyObject
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
addPatientIds
(GPathResult source, Set<String> target) Creates a new audit dataset instance.boolean
enrichAuditDatasetFromResponse
(Hl7v3AuditDataset auditDataset, Object response, AuditContext auditContext) Enriches the given audit dataset with transaction-specific contents of the response message.getEventOutcomeDescription
(Hl7v3AuditDataset auditDataset, Object gpath) Determines which event outcome description corresponds with the provided response POJOgetEventOutcomeIndicator
(Hl7v3AuditDataset auditDataset, Object gpath) Determines which event outcome corresponds with the provided response POJOvoid
static GPathResult
Methods inherited from class org.openehealth.ipf.commons.ihe.core.atna.AuditStrategySupport
doAudit, enrichAuditDatasetFromRequest, getEventOutcomeDescription, getEventOutcomeIndicator, isAuditableResponse, isServerSide, makeAuditMessage
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
Methods inherited from interface groovy.lang.GroovyObject
getProperty, invokeMethod, setProperty
-
Constructor Details
-
Hl7v3AuditStrategy
public Hl7v3AuditStrategy(boolean serverSide)
-
-
Method Details
-
getMetaClass
- Specified by:
getMetaClass
in interfaceGroovyObject
-
setMetaClass
- Specified by:
setMetaClass
in interfaceGroovyObject
-
createAuditDataset
Description copied from interface:AuditStrategy
Creates a new audit dataset instance.- Specified by:
createAuditDataset
in interfaceAuditStrategy<Hl7v3AuditDataset>
-
getEventOutcomeIndicator
Description copied from interface:AuditStrategy
Determines which event outcome corresponds with the provided response POJO- Specified by:
getEventOutcomeIndicator
in interfaceAuditStrategy<Hl7v3AuditDataset>
- Parameters:
auditDataset
- Audit datasetgpath
- POJO- Returns:
- event outcome code
-
getEventOutcomeDescription
Description copied from interface:AuditStrategy
Determines which event outcome description corresponds with the provided response POJO- Specified by:
getEventOutcomeDescription
in interfaceAuditStrategy<Hl7v3AuditDataset>
- Parameters:
auditDataset
- Audit datasetgpath
- POJO- Returns:
- event outcome description
-
enrichAuditDatasetFromResponse
public boolean enrichAuditDatasetFromResponse(Hl7v3AuditDataset 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<Hl7v3AuditDataset>
- Overrides:
enrichAuditDatasetFromResponse
in classAuditStrategySupport<Hl7v3AuditDataset>
- 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
-
addPatientIds
-
slurp
-