Audit Events Implementation Guide
0.1.0 - draft

Audit Events Implementation Guide - Local Development build (v0.1.0) built by the FHIR (HL7® FHIR® Standard) Build Tools. See the Directory of published versions

: Example profile instance UC1 - JSON Representation

Raw json | Download


{
  "resourceType" : "AuditEvent",
  "meta" : {
    "profile" : [
      🔗 "https://fhir-ig.digital.health.nz/auditevents/StructureDefinition/hira-audit-event"
    ]
  },
  "text" : {
    "status" : "generated",
    "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p class=\"res-header-id\"><b>Generated Narrative: AuditEvent HiraAuditEventExampleUC1C</b></p><a name=\"HiraAuditEventExampleUC1C\"> </a><a name=\"hcHiraAuditEventExampleUC1C\"> </a><a name=\"HiraAuditEventExampleUC1C-en-US\"> </a><p><b>type</b>: <a href=\"http://terminology.hl7.org/6.0.2/CodeSystem-audit-event-type.html#audit-event-type-rest\">Audit Event ID</a> rest: RESTful Operation</p><p><b>action</b>: Read/View/Print</p><p><b>recorded</b>: 2024-04-27 08:04:27+0000</p><p><b>outcome</b>: Success</p><p><b>outcomeDesc</b>: 200</p><p><b>purposeOfEvent</b>: <span title=\"Codes:{http://terminology.hl7.org/CodeSystem/v3-ActReason PATRQT}\">patient requested</span></p><blockquote><p><b>agent</b></p><p><b>role</b>: <span title=\"Codes:{http://terminology.hl7.org/CodeSystem/v3-RoleClass PAT}\">patient</span></p><p><b>who</b>: Identifier: <code>https://standards.digital.health.nz/ns/nhi-id</code>/NHI123</p><p><b>altId</b>: 56237238-0a38-4ae3-b148-1e6d7a9b9d07</p><p><b>requestor</b>: true</p><p><b>policy</b>: urn:uuid:1c7739fb-5099-4db9-a1f9-c928ee059640</p><h3>Networks</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Address</b></td></tr><tr><td style=\"display: none\">*</td><td>22.21.213.352</td></tr></table></blockquote><blockquote><p><b>agent</b></p><p><b>role</b>: <span title=\"Codes:{http://terminology.hl7.org/CodeSystem/extra-security-role-type dataprocessor}\">Data Processor</span></p><p><b>who</b>: client_id123</p><p><b>name</b>: My Health Record</p><p><b>requestor</b>: false</p><h3>Networks</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Address</b></td></tr><tr><td style=\"display: none\">*</td><td>88.11.333.213</td></tr></table></blockquote><h3>Sources</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Observer</b></td></tr><tr><td style=\"display: none\">*</td><td>HNZ API Gateway</td></tr></table><blockquote><p><b>entity</b></p><p><b>what</b>: <a href=\"https://fhir.digital.health.nz/fhir/R4/Immunization/_search\">https://fhir.digital.health.nz/fhir/R4/Immunization/_search</a></p><p><b>type</b>: <a href=\"http://terminology.hl7.org/6.0.2/CodeSystem-audit-entity-type.html#audit-entity-type-2\">Audit event entity type</a> 2: System Object</p><p><b>securityLabel</b>: <a href=\"http://terminology.hl7.org/6.0.2/CodeSystem-v3-Confidentiality.html#v3-Confidentiality-R\">Confidentiality</a> R: restricted</p><p><b>description</b>: Search Immunizations</p><p><b>query</b>: <code>e1wicGF0aWVudFwiOlwiTkhJMTIzXCJ9</code></p><blockquote><p><b>detail</b></p><p><b>type</b>: correlationId</p><p><b>value</b>: c500dae6-ac65-4e4f-a4c1-5aa222a6a807</p></blockquote><blockquote><p><b>detail</b></p><p><b>type</b>: fullUrl</p><p><b>value</b>: https://fhir.digital.health.nz/fhir/R4/Immunization/_search?admin=true</p></blockquote></blockquote><blockquote><p><b>entity</b></p><p><b>what</b>: Identifier: <code>https://standards.digital.health.nz/ns/nhi-id</code>/NHI123</p><p><b>role</b>: <a href=\"http://terminology.hl7.org/6.0.2/CodeSystem-object-role.html#object-role-1\">AuditEventEntityRole</a> 1: Patient</p></blockquote></div>"
  },
  "type" : {
    "system" : "http://terminology.hl7.org/CodeSystem/audit-event-type",
    "code" : "rest"
  },
  "action" : "R",
  "recorded" : "2024-04-27T08:04:27.434+00:00",
  "outcome" : "0",
  "outcomeDesc" : "200",
  "purposeOfEvent" : [
    {
      "coding" : [
        {
          "system" : "http://terminology.hl7.org/CodeSystem/v3-ActReason",
          "code" : "PATRQT"
        }
      ]
    }
  ],
  "agent" : [
    {
      "extension" : [
        {
          "extension" : [
            {
              "url" : "mha-confidence-level",
              "valueString" : "3N"
            }
          ],
          "url" : "https://fhir-ig.digital.health.nz/auditevents/StructureDefinition/agent-additional-details-extension"
        }
      ],
      "role" : [
        {
          "coding" : [
            {
              "system" : "http://terminology.hl7.org/CodeSystem/v3-RoleClass",
              "code" : "PAT"
            }
          ]
        }
      ],
      "who" : {
        "identifier" : {
          "system" : "https://standards.digital.health.nz/ns/nhi-id",
          "value" : "NHI123"
        }
      },
      "altId" : "56237238-0a38-4ae3-b148-1e6d7a9b9d07",
      "requestor" : true,
      "policy" : [
        "urn:uuid:1c7739fb-5099-4db9-a1f9-c928ee059640"
      ],
      "network" : {
        "address" : "22.21.213.352"
      }
    },
    {
      "role" : [
        {
          "coding" : [
            {
              "system" : "http://terminology.hl7.org/CodeSystem/extra-security-role-type",
              "code" : "dataprocessor"
            }
          ]
        }
      ],
      "who" : {
        "display" : "client_id123"
      },
      "name" : "My Health Record",
      "requestor" : false,
      "network" : {
        "address" : "88.11.333.213"
      }
    }
  ],
  "source" : {
    "observer" : {
      "display" : "HNZ API Gateway"
    }
  },
  "entity" : [
    {
      "what" : {
        "reference" : "https://fhir.digital.health.nz/fhir/R4/Immunization/_search"
      },
      "type" : {
        "system" : "http://terminology.hl7.org/CodeSystem/audit-entity-type",
        "code" : "2"
      },
      "securityLabel" : [
        {
          "system" : "http://terminology.hl7.org/CodeSystem/v3-Confidentiality",
          "code" : "R"
        }
      ],
      "description" : "Search Immunizations",
      "query" : "e1wicGF0aWVudFwiOlwiTkhJMTIzXCJ9",
      "detail" : [
        {
          "type" : "correlationId",
          "valueString" : "c500dae6-ac65-4e4f-a4c1-5aa222a6a807"
        },
        {
          "type" : "fullUrl",
          "valueString" : "https://fhir.digital.health.nz/fhir/R4/Immunization/_search?admin=true"
        }
      ]
    },
    {
      "what" : {
        "identifier" : {
          "system" : "https://standards.digital.health.nz/ns/nhi-id",
          "value" : "NHI123"
        }
      },
      "role" : {
        "system" : "http://terminology.hl7.org/CodeSystem/object-role",
        "code" : "1"
      }
    }
  ]
}