{
  "resourceType" : "AuditEvent",
  "meta" : {
    "profile" : ["https://fhir-ig.digital.health.nz/auditevents/StructureDefinition/hira-audit-event"]
  },
  "text" : {
    "status" : "extensions",
    "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p class=\"res-header-id\"><b>Generated Narrative: AuditEvent HiraAuditEventExampleUC2</b></p><a name=\"HiraAuditEventExampleUC2\"> </a><a name=\"hcHiraAuditEventExampleUC2\"> </a><div style=\"display: inline-block; background-color: #d9e0e7; padding: 6px; margin: 4px; border: 1px solid #8da1b4; border-radius: 5px; line-height: 60%\"><p style=\"margin-bottom: 0px\"/><p style=\"margin-bottom: 0px\">Profile: <a href=\"StructureDefinition-hira-audit-event.html\">Hira Audit Event</a></p></div><p><b>type</b>: <a href=\"http://terminology.hl7.org/7.5.0/CodeSystem-audit-event-type.html#audit-event-type-rest\">Audit Event ID: rest</a> (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 FAMRQT}\">family requested</span></p><blockquote><p><b>agent</b></p><p><b>role</b>: <span title=\"Codes:{http://terminology.hl7.org/CodeSystem/v3-RoleCode DELEGATOR}\">delegator</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>: false</p></blockquote><blockquote><p><b>agent</b></p><blockquote><p><b>AuditEvent.Agent additional details</b></p><ul><li>mha-confidence-level: 3N</li></ul></blockquote><p><b>role</b>: <span title=\"Codes:{http://terminology.hl7.org/CodeSystem/v3-RoleClass CAREGIVER}\">caregiver</span></p><p><b>who</b>: Identifier: <code>https://standards.digital.health.nz/ns/nhi-id</code>/NHI456</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>12.21.213.213</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/CarePlan\">https://fhir.digital.health.nz/fhir/R4/CarePlan</a></p><p><b>type</b>: <a href=\"http://terminology.hl7.org/7.5.0/CodeSystem-audit-entity-type.html#audit-entity-type-2\">Audit event entity type: 2</a> (System Object)</p><p><b>securityLabel</b>: <a href=\"http://terminology.hl7.org/7.5.0/CodeSystem-v3-Confidentiality.html#v3-Confidentiality-R\">Confidentiality: R</a> (restricted)</p><p><b>description</b>: Reading CarePlan</p><p><b>query</b>: <code>P3BhdGllbnQ9MTIzNA==</code></p><h3>Details</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Type</b></td><td><b>Value[x]</b></td></tr><tr><td style=\"display: none\">*</td><td>correlationId</td><td>c500dae6-ac65-4e4f-a4c1-5aa222a6a807</td></tr></table></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/7.5.0/CodeSystem-object-role.html#object-role-1\">AuditEventEntityRole: 1</a> (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" : "FAMRQT"
    }]
  }],
  "agent" : [{
    "role" : [{
      "coding" : [{
        "system" : "http://terminology.hl7.org/CodeSystem/v3-RoleCode",
        "code" : "DELEGATOR"
      }]
    }],
    "who" : {
      "identifier" : {
        "system" : "https://standards.digital.health.nz/ns/nhi-id",
        "value" : "NHI123"
      }
    },
    "altId" : "56237238-0a38-4ae3-b148-1e6d7a9b9d07",
    "requestor" : false
  },
  {
    "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" : "CAREGIVER"
      }]
    }],
    "who" : {
      "identifier" : {
        "system" : "https://standards.digital.health.nz/ns/nhi-id",
        "value" : "NHI456"
      }
    },
    "altId" : "56237238-0a38-4ae3-b148-1e6d7a9b9d07",
    "requestor" : true,
    "policy" : ["urn:uuid:1c7739fb-5099-4db9-a1f9-c928ee059640"],
    "network" : {
      "address" : "12.21.213.213"
    }
  },
  {
    "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/CarePlan"
    },
    "type" : {
      "system" : "http://terminology.hl7.org/CodeSystem/audit-entity-type",
      "code" : "2"
    },
    "securityLabel" : [{
      "system" : "http://terminology.hl7.org/CodeSystem/v3-Confidentiality",
      "code" : "R"
    }],
    "description" : "Reading CarePlan",
    "query" : "P3BhdGllbnQ9MTIzNA==",
    "detail" : [{
      "type" : "correlationId",
      "valueString" : "c500dae6-ac65-4e4f-a4c1-5aa222a6a807"
    }]
  },
  {
    "what" : {
      "identifier" : {
        "system" : "https://standards.digital.health.nz/ns/nhi-id",
        "value" : "NHI123"
      }
    },
    "role" : {
      "system" : "http://terminology.hl7.org/CodeSystem/object-role",
      "code" : "1"
    }
  }]
}