RESTful ATNA
1.0.0-comment - ci-build International flag

RESTful ATNA, published by IHE IT Infrastructure Technical Committee. This guide is not an authorized publication; it is the continuous build for version 1.0.0-comment built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/IHE/ITI.RESTfulATNA/ and changes regularly. See the Directory of published versions

2:3.ITI-20 Record Audit Event [ITI-20]

3.20 Record Audit Event [ITI-20]

3.20.3 Referenced Standards

RFC5424 The Syslog Protocol.
RFC5425 Transmission of Syslog Messages over TLS
RFC5426 Transmission of Syslog Messages over UDP
RFC7525 Recommendations for Secure Use of Transport Layer Security (TLS) and Datagram Transport Layer Security (DTLS)
DICOM

DICOM PS3.15 Annex A.5

http://medical.nema.org/medical/dicom/current/output/chtml/part15/sect_A. 5.html

ASTM E2147-01 Standard Specification for Audit and Disclosure Logs for Use in Health Information Systems
NIST SP 800-92 Guide to Computer Security Log Management.
W3C XML 1.0 Extensible Markup Language (XML) 1.0
HL7 FHIR Release 4 http://hl7.org/fhir/R4/index.html
RFC4627 The application/json Media Type for JavaScript Object Notation (JSON)

Messages

Diagramma di interazione ITI-20

Figure 3.20.4-1: Interaction Diagram

Note 1: Any actor initiating [ITI-20] may send to more than one Audit Record Repository.

Note 2: The Audit Repository that receives an [ITI-20] transaction may or may not be grouped with an Audit Record Forwarder. This diagram does not show a chain of forwarding between actors. Transaction [ITI-20] defines three different interactions that can be used for auditing:

  1. The "Send Audit Event Message - Syslog Interaction" is used for auditing using Syslog protocol (see Section 3.20.4.1)
  2. The "Send Audit Resource Request Message - FHIR Feed Interaction" is used for auditing a single FHIR AuditEvent Resource using RESTful protocol (see Section 3.20.4.2)
  3. The "Send Audit Bundle Request Message - FHIR Feed Interaction" is used for auditing a bundle of FHIR AuditEvent Resources using RESTful protocol (see Section 3.20.4.4)

The diagram below shows the three interactions that this transaction supports:

Secure Application, Secure Node, Audit Record Forwarder

Audit Record Repository

Syslog Interaction

FHIR Feed Interaction

FHIR Feed Interaction

Messages

3.20.4.2 Send Audit Resource Request Message FHIR Feed Interaction

An actor that is grouped with Secure Node or Secure Application, or an Audit Record Forwarder, detects an event that should be reported and uses the Send Audit Resource Request message to send a report about the event to an Audit Record Repository.

A Secure Node, Secure Application or Audit Record Forwarder, that supports the ATX: FHIR Feed Option, uses this message to post a single AuditEvent Resource to the Audit Record Repository using a FHIR create interaction see https://www.hl7.org/fhir/R4/http.html#create).

3.20.4.2.1 Trigger Events

This message is sent when an actor that is grouped with Secure Node or Secure Application or an Audit Record Forwarder needs to post a single AuditEvent Resource to the Audit Record Repository.

There are two trigger events:

  1. A Secure Node or Secure Application detects an event that should be reported to the Audit Record Repository. This transaction does not specify all of the policies or reasons for reporting events. They may be specified in other IHE profiles, they may be specified by local law or regulation, or they may be specified by local policy.
  2. An Audit Record Forwarder determines that a received AuditEvent Resource should be sent to another Audit Record Repository. This transaction does not specify what rules or policies determine whether an AuditEvent Resource should be forwarded.

An actor in any IHE profile, when grouped with a Secure Node or Secure Application, shall be able to report the events defined in Table 3.20.4.1.1.1-1. Additional reportable events are often identified for specific events in other IHE profiles, and are documented in that profile or transaction.

3.20.4.2.2 Message Semantics

A Secure Node, Secure Application or Audit Record Forwarder shall issue an HTTP request according to requirements defined in the FHIR specification for “create” interaction (http://hl7.org/fhir/R4/http.html#create ). The message uses an HTTP POST method to send a FHIR AuditEvent Resource.

The Secure Node, Secure Application or Audit Record Forwarder shall submit the FHIR AuditEvent Resource in either XML format or JSON format. Values for mime-type of the request message are defined in the ITI TF-2: Appendix Z.6.

An AuditEvent Resource that reflect Audit Message definition defined in IHE Technical Framework shall conform to the requirements defined in Section 3.20.4.2.2.1.

3.20.4.2.2.1 Mapping between DICOM Audit Message definitions and FHIR AuditEvent Resource for the FHIR Feed interactions

The mappings between IHE defined Audit Message content and FHIR AuditEvent Resource is based on FHIR Table 6.4.7.4 (http://hl7.org/fhir/R4/auditevent-mappings.html) that is further constrained in Table 3.20.4.2.2.1-1.

Table 3.20.4.2.2.1-1 is normative and contains mappings from Audit Message definitions for IHE transactions and based on DICOM standard into a FHIR AuditEvent Resource.

Table 3.20.4.2.2.1-1: DICOM Audit Message Definitions represented into an AuditEvent Resource

DICOM AuditMessage

FHIR AuditEvent Resource

EventIdentification.EventID type
EventIdentification.EventTypeCode subtype
EventIdentification@EventActionCode action
EventIdentification@EventDateTime recorded
EventIdentification@EventOutcomeIndicator outcome
EventIdentification.EventOutcomeDescription outcomeDesc
EventIdentification.purposeOfUse purposeOfEvent
ActiveParticipant agent
ActiveParticipant.RoleIDCode agent.type (Note 1)
ActiveParticipant.RoleIDCode agent.role (Note 1)
ActiveParticipant@UserId agent.who
ActiveParticipant@AlternativeUserId agent.altId
ActiveParticipant@UserName agent.name
ActiveParticipant@UserIsRequestor agent.requestor
ParticipantRoleIDCode agent.policy
ActiveParticipant.MediaIdentifier.MediaType agent.media
ActiveParticipant@NetworkAccessPointID agent.network.address
ActiveParticipant@NetworkAccessPointTypeCode agent.network.type
AuditSourceIdentification source
AuditSourceIdentification@AuditEnterpriseSiteId source.site
AuditSourceIdentification@AuditSourceId source.observer
AuditSourceIdentification.AuditSourcetypeCode source.type
ParticipantObjectIdentification entity
ParticipantObjectIdentification@ParticipantObjectID and ParticipantObjectIdentification.ParticipantObjectIDTypeCode entity.what
ParticipantObjectIdentification@ParticipantObjectTypeCode entity.type
ParticipantObjectIdentification@ParticipantObjectTypeCodeRole entity.role
ParticipantObjectIdentification@ParticipantObjectDataLifeCycle entity.lifecycle
ParticipantObjectIdentification@ParticipantObjectSensitivity entity.securityLabel
ParticipantObjectIdentification.ParticipantObjectName entity.name (Note 2)
ParticipantObjectIdentification.ParticipantObjectQuery entity.query (Note 2)
ParticipantObjectIdentification.ParticipantObjectDetail entity.detail
ParticipantObjectIdentification.ParticipantObjectDetail@type entity.detail.type
ParticipantObjectIdentification.ParticipantObjectDetail@value entity.detail.ValueBase64Binary

Note 1: If the Audit Record Repository knows the ActiveParticipant.RoleIDCode as a type, it should be mapped to agent.type. Otherwise the default mapping is to agent.role.

Note 2: Only one element between entity.name and entity.query shall be used in the AuditEvent Resource.

3.20.4.2.3 Expected Actions

The Audit Record Repository shall support all the mime-types defined in ITI TF-2: Appendix Z.6.

On receipt of the Send Audit Resource Request message, the Audit Record Repository shall validate the Resources and respond with one of the HTTP codes defined in Section 3.20.4.3.2 Message Semantics.

For the Resource received, the Audit Record Repository may:

  • discard the Resource as irrelevant
  • retain the Resource in an internal data store
  • perform other processing on the Resource

The Audit Record Repository may apply a variety of data retention rules to the data store. This transaction does not specify data retention rules. These usually depend upon the purposes assigned to a specific Audit Record Repository.

If needed, an Audit Record Repository that needs to store a received AuditEvent Resource as a DICOM Audit Message can do the transformation from the FHIR Resource to a DICOM message according to the requirements defined in Table 3.20.4.2.2.1-1.

The Audit Record Repository shall store any resources that were not discarded and make them available for further search via the Retrieve ATNA Audit Event [ITI-81] transaction. These events shall not be available for further search via Retrieve Syslog Events [ITI-82] transaction.

When the Audit Record Repository is grouped with an Audit Record Forwarder, the Audit Record Forwarder shall:

  • apply filtering rules to all AuditEvent Resources received by the Audit Record Repository, and
  • forward all AuditEvent Resources that match filters to their configured destinations.

If needed, an Audit Record Forwarder that will forward a received AuditEvent Resource using the Audit Event message (DICOM audit event via syslog protocol) can do the transformation from the FHIR Resource to a DICOM message according to the requirements defined in Table 3.20.4.2.2.1-1.

3.20.4.3 Send Audit Resource Response

The Audit Record Repository responds to the Secure Node, Secure Application or Audit Record Forwarder using a Send Audit Resource Response message in order to inform the client about the result of the operation.

3.20.4.3.1 Trigger Events

When the Audit Record Repository has finished storing the AuditEvent Resource received, it sends this message back to the client acknowledging the result of the request.

3.20.4.3.2 Message Semantics

The Audit Record Repository returns an HTTP Status code appropriate to the processing, conforming to specification requirements as specified in https://www.hl7.org/fhir/R4/http.html#create.

If the outcome is a success, the http status code of the response shall be a 2xx code.

If the outcome is a failure, the Audit Record Repository shall be capable of returning status codes according to what is defined in https://www.hl7.org/fhir/R4/http.html#create.

The Audit Record Repository can return other status codes 4xx or 5xx in accordance to internal business rules that are out of scope for this transaction.

3.20.4.3.3 Expected Actions

The Audit Record Repository could return failures. For this reason, it is up to the client to decide what to do with failures that have been returned by the Audit Record Repository.

3.20.4.4 Send Audit Bundle Request Message – FHIR Feed Interaction

A Secure Node, Secure Application or Audit Record Forwarder that supports the ATX: FHIR Feed Option uses this message to post a Bundle of AuditEvent Resources to the Audit Record Repository using a FHIR batch interaction (see https://www.hl7.org/fhir/R4/http.html#transaction).

3.20.4.4.1 Trigger Events

This message is sent when an Audit Record Forwarder or an actor that is grouped with Secure Node or Secure Application needs to send multiple events that has been audited to the Audit Record Repository.

There are two trigger events:

  1. A Secure Node or Secure Application detects at least one event that should be reported to the Audit Record Repository. This transaction does not specify all of the policies or reasons for reporting events. They may be specified in other IHE profiles, they may be specified by local law or regulation, or they may be specified by local policy.
  2. An Audit Record Forwarder determines that at least one received AuditEvent Resource should be sent to another Audit Record Repository. This transaction does not specify what rules or policies determine whether an AuditEvent Resource should be forwarded.

An actor in any IHE profile, when grouped with a Secure Node or Secure Application, shall be able to report the events defined in Table 3.20.4.1.1.1-1. Additional reportable events are often identified for specific events in other IHE profiles, and are documented in that profile or transaction.

3.20.4.4.2 Message Semantics

An Audit Record Forwarder or an actor that is grouped with Secure Node or Secure Application shall issue an HTTP request according to requirements defined in the FHIR specification for "batch" interaction (see https://www.hl7.org/fhir/R4/http.html#transaction).

The Audit Record Repository and the client shall both support the "batch" interaction.

The message uses an HTTP POST method to submit a FHIR Bundle Resource. The client shall post FHIR resources in either XML format or JSON format. Values for mime-type of the request message are defined in the ITI TF-2: Appendix Z.6.

The FHIR Bundle Resource shall contain at least one FHIR AuditEvent Resource (https://www.hl7.org/fhir/R4/auditevent.html).

The element Bundle.entry.request.method shall be POST.

AuditEvent Resources included in the Bundle that reflect Audit Message definitions defined in IHE Technical Framework shall conform to the requirements defined in Section 3.20.4.2.2.1.

Table 3.20.4.4.2-1: Bundle Resource Constraints

Element &

Cardinality

Constraints
type [1..1] Shall be: batch
entry [1..*] Shall contain at least one AuditEvent Resource.
entry.request.method Shall be: POST
3.20.4.4.3 Expected Actions

The Audit Record Repository shall support all the mime-types defined in ITI TF-2: Appendix Z.6.

On receipt of the Send Audit Bundle Resource Request, the Audit Record Repository shall validate Resources included in it and respond with one of the HTTP codes defined in Section

3.20.4.5.2 Message Semantics

For each Resource received in the Bundle, the Audit Record Repository may:

  • Discard the Resource as irrelevant.
  • Retain the Resource in an internal data store.
  • Perform other processing on the Resource.

The Audit Record Repository may apply a variety of data retention rules to the data store. This transaction does not specify data retention rules. These are usually dependent upon the purposes assigned to a specific Audit Record Repository.

If needed, an Audit Record Repository that needs to store a received AuditEvent Resource as a DICOM Audit Message can do the transformation from the FHIR Resource to a DICOM message according to the requirements defined in Table 3.20.4.2.2.1-1.

The Audit Record Repository shall store any resources that were not discarded and make them available for further search via the Retrieve ATNA Audit Event [ITI-81] transaction. These events shall not be available for further search via Retrieve Syslog Events [ITI-82] transaction.

When the Audit Record Repository is grouped with an Audit Record Forwarder, the Audit Record Forwarder shall:

  • Apply filtering rules to all AuditEvent Resources received by the Audit Record Repository, and
  • Forward all AuditEvent Resources that match filters to their configured destinations.

If needed, an Audit Record Forwarder that needs to forward a received AuditEvent Resource using the Audit Event message can do the transformation from the FHIR Resource to a DICOM message according to the requirements defined in Table 3.20.4.2.2.1-1.

3.20.4.5 Send Audit Bundle Response

The Audit Record Repository sends a Send Audit Bundle Response message in response to a Send Audit Bundle Request.

3.20.4.5.1 Trigger Events

When the Audit Record Repository has finished storing the AuditEvent Resources received in the Bundle Resource, it sends back this message to the client acknowledging the result of the request.

3.20.4.5.2 Message Semantics

The Audit Record Repository returns an HTTP Status code appropriate to the processing, conforming to specification requirements as specified in https://www.hl7.org/fhir/R4/http.html#transaction-response.

When the Audit Record Repository has processed the request shall return an HTTP response with an overall status code.

To allow the client to know the outcome of the transaction, and the identities assigned to the resources by the Audit Record Repository, the Audit Record Repository shall return a Bundle, with type set to batch-response. Each entry element shall contain a response element with an HTTP Status Code which details the outcome of processing of the request entry.

If no "Prefer" header is specified in the request the server should respond as if it is set to

return=minimal; see https://www.hl7.org/fhir/R4/http.html#ops.

If the outcome of the entry is a success, the http status code of the response shall be a 2xx code.

If the outcome of the entry is a failure, the Audit Record Repository shall be capable of returning status codes according to what is defined in https://www.hl7.org/fhir/R4/http.html#create.

The Audit Record Repository can return other status codes 4xx or 5xx in accordance to internal business rules that are out of scope for this transaction.

3.20.4.5.3 Expected Actions

The Audit Record Repository could return a partial success for the Bundle where some resources succeeded and other not. For this reason, it is up to the client to decide what to do with failures that have been returned by the Audit Record Repository.

3.20.5 Security Considerations

​The use of the TLS or HTTPS transport mechanismis recommended because the audit event messages often contain PHI or other sensitive information. See Section 3.20.4.1.2.1.

The use of the TLS transport mechanism is not always required because there are other means of protection that may be more appropriate in some situations. The decision to use the UDP transport mechanism should be based upon a security and privacy risk analysis.

The data store within the Audit Record Repository may contain sensitive information, and the Audit Record Repository analysis facilities may allow sensitive queries. It will be a high value target for malicious actors, and should be protected accordingly.

The Audit Record Repository is required to generate audit event messages for various kinds of use of the data store and configuration changes. This is specified in Section 3.20.4.1.1.

If the AuditEvent Message Option is supported on the Audit Record Repository, update, delete and patch interaction of AuditEvent Resources should be managed by local policies.