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

public class FhirAuditDataset extends AuditDataset
Generic audit dataset for FHIR-based IHE transactions.
Since:
3.1
Author:
Christian Ohr
See Also:
  • Constructor Details

    • FhirAuditDataset

      public FhirAuditDataset(boolean serverSide)
  • Method Details

    • getPatientId

      public String getPatientId()
      Returns:
      the first present patient ID or null when no patient IDs have been collected.
    • getLocalAddress

      public String getLocalAddress()
      Description copied from class: AuditDataset
      Returns the local address. May fall back to AuditUtils.getLocalIPAddress() if not explicitly set
      Specified by:
      getLocalAddress in class AuditDataset
      Returns:
      The machine name or IP address
    • getRemoteAddress

      public String getRemoteAddress()
      Specified by:
      getRemoteAddress in class AuditDataset
      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

      public String getRequestPayload()
      Request payload.
    • setRequestPayload

      public void setRequestPayload(String requestPayload)
      Request payload.
    • setLocalAddress

      public void setLocalAddress(String localAddress)
      Local address
    • setRemoteAddress

      public void setRemoteAddress(String remoteAddress)
      Remote address
    • getServiceEndpointUrl

      public String getServiceEndpointUrl()
      Service endpoint URL
    • setServiceEndpointUrl

      public void setServiceEndpointUrl(String serviceEndpointUrl)
      Service endpoint URL
    • getPatientIds

      public Set<String> getPatientIds()
      Patient IDs
    • getHumanUsers

      public List<AuditDataset.HumanUser> getHumanUsers()
      Specified by:
      getHumanUsers in class AuditDataset
      Returns:
      information about human user(s) participating in the transaction
    • getSourceUserId

      public String getSourceUserId()
      Specified by:
      getSourceUserId in class AuditDataset
      Returns:
      the user ID of the transaction source
    • setSourceUserId

      public void setSourceUserId(String sourceUserId)
    • getDestinationUserId

      public String getDestinationUserId()
      Specified by:
      getDestinationUserId in class AuditDataset
      Returns:
      the user ID of the transaction destination
    • setDestinationUserId

      public void setDestinationUserId(String destinationUserId)
    • getFhirContext

      public FhirContext getFhirContext()
    • setFhirContext

      public void setFhirContext(FhirContext fhirContext)
    • getAuthorization

      public String getAuthorization()
    • setAuthorization

      public void setAuthorization(String authorization)