{
  "resourceType": "StructureDefinition",
  "id": "ehrsrle-auditevent",
  "text": {
    "status": "generated",
    "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\">to do</div>"
  },
  "extension": [
    {
      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
      "valueCode": "ehr"
    }
  ],
  "url": "http://hl7.org/fhir/StructureDefinition/ehrsrle-auditevent",
  "name": "EHRS FM Record Lifecycle Event - Audit Event",
  "status": "draft",
  "experimental": false,
  "date": "2014-12-04",
  "publisher": "Health Level Seven International (Electronic Health Record)",
  "contact": [
    {
      "telecom": [
        {
          "system": "url",
          "value": "http://hl7.org/special/committees/ehr.html"
        }
      ]
    }
  ],
  "description": "Defines the elements to be supported within the AuditEvent resource in order to conform with the Electronic Health Record System Functional Model Record Lifecycle Event standard",
  "fhirVersion": "3.0.1",
  "mapping": [
    {
      "identity": "rim",
      "uri": "http://hl7.org/v3",
      "name": "RIM Mapping"
    },
    {
      "identity": "dicom",
      "uri": "http://nema.org/dicom",
      "name": "DICOM Tag Mapping"
    },
    {
      "identity": "w5",
      "uri": "http://hl7.org/fhir/w5",
      "name": "W5 Mapping"
    },
    {
      "identity": "w3c.prov",
      "uri": "http://www.w3.org/ns/prov",
      "name": "W3C PROV"
    },
    {
      "identity": "fhirprovenance",
      "uri": "http://hl7.org/fhir/provenance",
      "name": "FHIR Provenance"
    }
  ],
  "kind": "resource",
  "abstract": false,
  "type": "AuditEvent",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/AuditEvent",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "AuditEvent",
        "path": "AuditEvent",
        "min": 0,
        "max": "*"
      },
      {
        "id": "AuditEvent.type",
        "path": "AuditEvent.type",
        "mustSupport": true
      },
      {
        "id": "AuditEvent.subtype",
        "path": "AuditEvent.subtype",
        "mustSupport": true
      },
      {
        "id": "AuditEvent.action",
        "path": "AuditEvent.action",
        "mustSupport": true
      },
      {
        "id": "AuditEvent.recorded",
        "path": "AuditEvent.recorded",
        "mustSupport": true
      },
      {
        "id": "AuditEvent.purposeOfEvent",
        "path": "AuditEvent.purposeOfEvent",
        "mustSupport": true
      },
      {
        "id": "AuditEvent.agent",
        "path": "AuditEvent.agent",
        "mustSupport": true
      },
      {
        "id": "AuditEvent.agent.role",
        "path": "AuditEvent.agent.role",
        "mustSupport": true
      },
      {
        "id": "AuditEvent.agent.reference",
        "path": "AuditEvent.agent.reference",
        "mustSupport": true
      },
      {
        "id": "AuditEvent.agent.userId",
        "path": "AuditEvent.agent.userId",
        "mustSupport": true
      },
      {
        "id": "AuditEvent.agent.requestor",
        "path": "AuditEvent.agent.requestor",
        "mustSupport": true
      },
      {
        "id": "AuditEvent.agent.location",
        "path": "AuditEvent.agent.location",
        "mustSupport": true
      },
      {
        "id": "AuditEvent.agent.policy",
        "path": "AuditEvent.agent.policy",
        "mustSupport": true
      },
      {
        "id": "AuditEvent.agent.network",
        "path": "AuditEvent.agent.network",
        "mustSupport": true
      },
      {
        "id": "AuditEvent.agent.network.address",
        "path": "AuditEvent.agent.network.address",
        "mustSupport": true
      },
      {
        "id": "AuditEvent.agent.network.type",
        "path": "AuditEvent.agent.network.type",
        "mustSupport": true
      },
      {
        "id": "AuditEvent.agent.purposeOfUse",
        "path": "AuditEvent.agent.purposeOfUse",
        "mustSupport": true
      },
      {
        "id": "AuditEvent.source",
        "path": "AuditEvent.source",
        "mustSupport": true
      },
      {
        "id": "AuditEvent.source.site",
        "path": "AuditEvent.source.site",
        "mustSupport": true
      },
      {
        "id": "AuditEvent.source.identifier",
        "path": "AuditEvent.source.identifier",
        "mustSupport": true
      },
      {
        "id": "AuditEvent.source.type",
        "path": "AuditEvent.source.type",
        "mustSupport": true
      },
      {
        "id": "AuditEvent.entity",
        "path": "AuditEvent.entity",
        "mustSupport": true
      },
      {
        "id": "AuditEvent.entity.identifier",
        "path": "AuditEvent.entity.identifier",
        "mustSupport": true
      },
      {
        "id": "AuditEvent.entity.reference",
        "path": "AuditEvent.entity.reference",
        "mustSupport": true
      },
      {
        "id": "AuditEvent.entity.type",
        "path": "AuditEvent.entity.type",
        "mustSupport": true
      },
      {
        "id": "AuditEvent.entity.role",
        "path": "AuditEvent.entity.role",
        "mustSupport": true
      },
      {
        "id": "AuditEvent.entity.lifecycle",
        "path": "AuditEvent.entity.lifecycle",
        "mustSupport": true
      },
      {
        "id": "AuditEvent.entity.securityLabel",
        "path": "AuditEvent.entity.securityLabel",
        "mustSupport": true
      }
    ]
  }
}