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 Constructor Description Hl7v3AuditStrategy(boolean serverSide)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static void
addPatientIds(GPathResult source, Set<String> target)
Hl7v3AuditDataset
createAuditDataset()
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.String
getEventOutcomeDescription(Object gpath)
Determines which event outcome description corresponds with the provided response POJOEventOutcomeIndicator
getEventOutcomeIndicator(Object gpath)
Determines which event outcome corresponds with the provided response POJOMetaClass
getMetaClass()
void
setMetaClass(MetaClass mc)
static GPathResult
slurp(Object message)
-
Methods inherited from class org.openehealth.ipf.commons.ihe.core.atna.AuditStrategySupport
doAudit, enrichAuditDatasetFromRequest, 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
-
-
-
-
Method Detail
-
getMetaClass
public MetaClass getMetaClass()
- Specified by:
getMetaClass
in interfaceGroovyObject
-
setMetaClass
public void setMetaClass(MetaClass mc)
- Specified by:
setMetaClass
in interfaceGroovyObject
-
createAuditDataset
public Hl7v3AuditDataset createAuditDataset()
Description copied from interface:AuditStrategy
Creates a new audit dataset instance.- Specified by:
createAuditDataset
in interfaceAuditStrategy<Hl7v3AuditDataset>
-
getEventOutcomeIndicator
public EventOutcomeIndicator getEventOutcomeIndicator(Object gpath)
Description copied from interface:AuditStrategy
Determines which event outcome corresponds with the provided response POJO- Specified by:
getEventOutcomeIndicator
in interfaceAuditStrategy<Hl7v3AuditDataset>
- Overrides:
getEventOutcomeIndicator
in classAuditStrategySupport<Hl7v3AuditDataset>
- Parameters:
gpath
- POJO- Returns:
- event outcome code
-
getEventOutcomeDescription
public String getEventOutcomeDescription(Object gpath)
Description copied from interface:AuditStrategy
Determines which event outcome description corresponds with the provided response POJO- Specified by:
getEventOutcomeDescription
in interfaceAuditStrategy<Hl7v3AuditDataset>
- Overrides:
getEventOutcomeDescription
in classAuditStrategySupport<Hl7v3AuditDataset>
- Parameters:
gpath
- 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
public static void addPatientIds(GPathResult source, Set<String> target)
-
slurp
public static GPathResult slurp(Object message)
-
-