Class FhirAuditDataset
java.lang.Object
org.openehealth.ipf.commons.ihe.core.atna.AuditDataset
org.openehealth.ipf.commons.ihe.fhir.audit.FhirAuditDataset
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
FhirQueryAuditDataset, GenericFhirAuditDataset, Iti104AuditDataset, Iti105AuditDataset, Iti65AuditDataset, Iti68AuditDataset
Generic audit dataset for FHIR-based IHE transactions.
- Since:
- 3.1
- Author:
- Christian Ohr
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class AuditDataset
AuditDataset.HumanUser -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the local address.Patient IDsRequest payload.Service endpoint URLvoidsetAuthorization(String authorization) voidsetDestinationUserId(String destinationUserId) voidsetFhirContext(FhirContext fhirContext) voidsetLocalAddress(String localAddress) Local addressvoidsetRemoteAddress(String remoteAddress) Remote addressvoidsetRequestPayload(String requestPayload) Request payload.voidsetServiceEndpointUrl(String serviceEndpointUrl) Service endpoint URLvoidsetSourceUserId(String sourceUserId) Methods inherited from class AuditDataset
getEventOutcomeDescription, getEventOutcomeIndicator, getRequestId, getRequestIdType, getSourceUserName, getW3cTraceContextId, isDestinationUserIsRequestor, isServerSide, isSourceUserIsRequestor, setEventOutcomeDescription, setEventOutcomeIndicator, setRequestId, setSourceUserName, setW3cTraceContextId, toString
-
Constructor Details
-
FhirAuditDataset
public FhirAuditDataset(boolean serverSide)
-
-
Method Details
-
getPatientId
- Returns:
- the first present patient ID
or
nullwhen no patient IDs have been collected.
-
getLocalAddress
Description copied from class:AuditDatasetReturns the local address. May fall back toAuditUtils.getLocalIPAddress()if not explicitly set- Specified by:
getLocalAddressin classAuditDataset- Returns:
- The machine name or IP address
-
getRemoteAddress
- Specified by:
getRemoteAddressin classAuditDataset- Returns:
- the machine name or IP address of the other end of the transaction.
Only the server learns this from the request -- the servlet API hands it the client IP. The client is told nothing about its peer, but it does know the URL it sent the request to, and that URL identifies the server; the audit message builder reduces it to a host anyway. Without this the network of the server agent would be missing from every client side record, which the audit profiles of some transactions require -- PIXm, for one.
-
getRequestPayload
Request payload. -
setRequestPayload
Request payload. -
setLocalAddress
Local address -
setRemoteAddress
Remote address -
getServiceEndpointUrl
Service endpoint URL -
setServiceEndpointUrl
Service endpoint URL -
getPatientIds
-
getHumanUsers
- Specified by:
getHumanUsersin classAuditDataset- Returns:
- information about human user(s) participating in the transaction
-
getSourceUserId
- Specified by:
getSourceUserIdin classAuditDataset- Returns:
- the user ID of the transaction source
-
setSourceUserId
-
getDestinationUserId
- Specified by:
getDestinationUserIdin classAuditDataset- Returns:
- the user ID of the transaction destination
-
setDestinationUserId
-
getFhirContext
-
setFhirContext
-
getAuthorization
-
setAuthorization
-