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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddPatientIds(GPathResult source, Set<String> target) Creates a new audit dataset instance.booleanenrichAuditDatasetFromResponse(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 POJOvoidstatic GPathResultMethods inherited from class org.openehealth.ipf.commons.ihe.core.atna.AuditStrategySupport
doAudit, enrichAuditDatasetFromRequest, isAuditableResponse, isServerSide, makeAuditMessageMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.openehealth.ipf.commons.ihe.core.atna.AuditStrategy
enrichAuditDatasetFromResponseMethods inherited from interface groovy.lang.GroovyObject
getProperty, invokeMethod, setProperty
-
Constructor Details
-
Hl7v3AuditStrategy
public Hl7v3AuditStrategy(boolean serverSide)
-
-
Method Details
-
getMetaClass
- Specified by:
getMetaClassin interfaceGroovyObject
-
setMetaClass
- Specified by:
setMetaClassin interfaceGroovyObject
-
createAuditDataset
Description copied from interface:AuditStrategyCreates a new audit dataset instance.- Specified by:
createAuditDatasetin interfaceAuditStrategy<Hl7v3AuditDataset>
-
getEventOutcomeIndicator
Description copied from interface:AuditStrategyDetermines which event outcome corresponds with the provided response POJO- Specified by:
getEventOutcomeIndicatorin interfaceAuditStrategy<Hl7v3AuditDataset>- Parameters:
auditDataset- Audit datasetgpath- POJO- Returns:
- event outcome code
-
getEventOutcomeDescription
Description copied from interface:AuditStrategyDetermines which event outcome description corresponds with the provided response POJO- Specified by:
getEventOutcomeDescriptionin 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:AuditStrategyEnriches the given audit dataset with transaction-specific contents of the response message.- Specified by:
enrichAuditDatasetFromResponsein interfaceAuditStrategy<Hl7v3AuditDataset>- Overrides:
enrichAuditDatasetFromResponsein classAuditStrategySupport<Hl7v3AuditDataset>- Parameters:
auditDataset- audit dataset to be enriched.response-Objectrepresenting the responded resource.auditContext- audit context, if relevant- Returns:
- true if response indicates success, false otherwise
-
addPatientIds
-
slurp
-