{
  "resourceType": "AuditEvent",
  "id": "audit-event-created-example",
  "meta": {
    "versionId": "1",
    "lastUpdated": "2019-04-19T00:00:00Z",
    "profile": [
      "http://hl7.org.au/fhir/ch/v1/StructureDefinition/ncdhc-audit-event"
    ]
  },
  "text": {
    "status": "generated",
    "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p><b> Create Newborn Delivery by Dr. Joe Smith </b></p></div>"
  },
  "type": {
    "system": "http://hl7.org.au/fhir/ch/v1/CodeSystem/ncdhc-audit-type-1",
    "code": "HEALTHINT",
    "display": "Health Interaction"
  },
  "subtype": [
    {
      "system": "http://hl7.org.au/fhir/ch/v1/CodeSystem/ncdhc-hi-type-1",
      "code": "NEWBRNDEL",
      "display": "Newborn Delivery"
    }
  ],
  "action": "C",
  "recorded": "2019-04-19T00:00:00Z",
  "outcome": "0",
  "agent": [
    {
      "role": [
        {
          "coding": [
            {
              "system": "http://hl7.org.au/fhir/ch/v1/CodeSystem/ncdhc-security-role-type-1",
              "code": "PAT",
              "display": "patient"
            }
          ],
          "text": "Patient"
        }
      ],
      "reference": {
        "reference": "Patient/patient-baby-example"
      },
      "userId": {
        "system": "http://ns.electronichealth.net.au/id/hi/ihi/1.0",
        "value": "8003608166690503"
      },
      "name": "Baby of Eva Bill",
      "requestor": false
    },
    {
      "role": [
        {
          "coding": [
            {
              "system": "http://hl7.org.au/fhir/ch/v1/CodeSystem/ncdhc-security-role-type-1",
              "code": "RESPRSN",
              "display": "Authorised Representative"
            }
          ],
          "text": "Authorised Representative"
        }
      ],
      "reference": {
        "reference": "Patient/ncdhc-patient-expectant-mother-example"
      },
      "userId": {
        "system": "http://ns.electronichealth.net.au/id/hpio-scoped/medicalrecord/1.0",
        "value": "8003620000000000"
      },
      "name": "Eva Bill",
      "requestor": false
    },
    {
      "role": [
        {
          "coding": [
            {
              "system": "http://hl7.org.au/fhir/ch/v1/CodeSystem/ncdhc-security-role-type-1",
              "code": "PROV",
              "display": "Health Care Provider"
            }
          ],
          "text": "Provider"
        }
      ],
      "userId": {
        "system": "http://ns.electronichealth.net.au/id/hi/hpii/1.0",
        "value": "8003610833334085"
      },
      "name": "Dr. Joe Smith",
      "requestor": true
    },
    {
      "role": [
        {
          "coding": [
            {
              "system": "http://hl7.org.au/fhir/ch/v1/CodeSystem/ncdhc-security-role-type-1",
              "code": "CST",
              "display": "Provider Organisation"
            }
          ],
          "text": "Organisation"
        }
      ],
      "userId": {
        "system": "http://ns.electronichealth.net.au/id/hi/hpio/1.0",
        "value": "8003627500000328"
      },
      "name": "ABC Medical Centre",
      "requestor": true
    },
    {
      "role": [
        {
          "coding": [
            {
              "system": "http://hl7.org.au/fhir/ch/v1/CodeSystem/ncdhc-security-role-type-1",
              "code": "DIVC",
              "display": "Devices"
            }
          ],
          "text": "Devices"
        }
      ],
      "userId": {
        "system": "http://ns.electronichealth.net.au/id/pcehr/paid/1.0",
        "value": "8003640003999998"
      },
      "name": "NSW JT",
      "requestor": false
    }
  ],
  "source": {
    "site": "JT",
    "identifier": {
      "value": "ncdhc.jt.app.3125225222"
    },
    "type": [
      {
        "system": "http://hl7.org/fhir/security-source-type",
        "code": "4",
        "display": "Application Server"
      }
    ]
  },
  "entity": [
    {
      "reference": {
        "reference": "Bundle/ncdhc-bundle-transaction-nbdelivery-request-payload"
      }
    }
  ]
}