public class GenericFhirAuditStrategy<T extends org.hl7.fhir.instance.model.api.IDomainResource> extends FhirAuditStrategy<GenericFhirAuditDataset>
Constructor and Description |
---|
GenericFhirAuditStrategy(boolean serverSide,
Function<T,Optional<org.hl7.fhir.dstu3.model.Reference>> patientIdExtractor) |
Modifier and Type | Method and Description |
---|---|
GenericFhirAuditDataset |
createAuditDataset()
Creates a new audit dataset instance.
|
GenericFhirAuditDataset |
enrichAuditDatasetFromRequest(GenericFhirAuditDataset auditDataset,
Object request,
Map<String,Object> parameters)
Enriches the given audit dataset with transaction-specific
contents of the request message and Camel exchange.
|
boolean |
enrichAuditDatasetFromResponse(GenericFhirAuditDataset auditDataset,
Object response,
AuditContext auditContext)
Enriches the given audit dataset with transaction-specific
contents of the response message.
|
AuditMessage[] |
makeAuditMessage(AuditContext auditContext,
GenericFhirAuditDataset auditDataset)
Constructs an
AuditMessage from a provided AuditDataset |
getEventOutcomeCodeFromOperationOutcome, getEventOutcomeDescriptionFromOperationOutcome
getEventOutcomeCodeFromResource, getEventOutcomeDescription, getEventOutcomeIndicator
doAudit, isAuditableResponse, isServerSide
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
enrichAuditDatasetFromResponse
public GenericFhirAuditDataset createAuditDataset()
AuditStrategy
public GenericFhirAuditDataset enrichAuditDatasetFromRequest(GenericFhirAuditDataset auditDataset, Object request, Map<String,Object> parameters)
AuditStrategy
enrichAuditDatasetFromRequest
in interface AuditStrategy<GenericFhirAuditDataset>
enrichAuditDatasetFromRequest
in class AbstractFhirAuditStrategy<GenericFhirAuditDataset,org.hl7.fhir.dstu3.model.OperationOutcome>
auditDataset
- audit dataset to be enriched.request
- Object
representing the request.parameters
- additional parameterspublic boolean enrichAuditDatasetFromResponse(GenericFhirAuditDataset auditDataset, Object response, AuditContext auditContext)
AuditStrategy
enrichAuditDatasetFromResponse
in interface AuditStrategy<GenericFhirAuditDataset>
enrichAuditDatasetFromResponse
in class AbstractFhirAuditStrategy<GenericFhirAuditDataset,org.hl7.fhir.dstu3.model.OperationOutcome>
auditDataset
- audit dataset to be enriched.response
- Object
representing the responded resource.auditContext
- audit context, if relevantpublic AuditMessage[] makeAuditMessage(AuditContext auditContext, GenericFhirAuditDataset auditDataset)
AuditStrategySupport
AuditMessage
from a provided AuditDataset
makeAuditMessage
in class AuditStrategySupport<GenericFhirAuditDataset>
auditContext
- audit contextauditDataset
- audit datasetCopyright © 2018 Open eHealth Foundation. All rights reserved.