DSTU2

This page is part of the FHIR Specification (v1.0.2: DSTU 2). The current version which supercedes this version is 5.0.0. For a full list of available versions, see the Directory of published versions . Page versions: R5 R4B R4 R3 R2

Auditevent.profile.json

Raw JSON (canonical form)

StructureDefinition for auditevent

{
  "resourceType": "StructureDefinition",
  "id": "AuditEvent",
  "meta": {
    "lastUpdated": "2015-10-24T07:41:03.495+11:00"
  },
  "text": {
    "status": "generated",
    "div": "<div>!-- Snipped for Brevity --></div>"
  },
  "extension": [
    {
      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
      "valueInteger": 2
    }
  ],
  "url": "http://hl7.org/fhir/StructureDefinition/AuditEvent",
  "name": "AuditEvent",
  "status": "draft",
  "publisher": "Health Level Seven International (Security)",
  "contact": [
    {
      "telecom": [
        {
          "system": "other",
          "value": "http://hl7.org/fhir"
        }
      ]
    },
    {
      "telecom": [
        {
          "system": "other",
          "value": "http://www.hl7.org/Special/committees/secure/index.cfm"
        }
      ]
    }
  ],
  "date": "2015-10-24T07:41:03+11:00",
  "description": "Base StructureDefinition for AuditEvent Resource",
  "fhirVersion": "1.0.2",
  "mapping": [
    {
      "identity": "dicom",
      "uri": "http://nema.org/dicom",
      "name": "DICOM"
    },
    {
      "identity": "rim",
      "uri": "http://hl7.org/v3",
      "name": "RIM"
    },
    {
      "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,
  "base": "http://hl7.org/fhir/StructureDefinition/DomainResource",
  "snapshot": {
    "element": [
      {
        "path": "AuditEvent",
        "short": "Event record kept for security purposes",
        "definition": "A record of an event made for purposes of maintaining a security log. Typical uses include detection of intrusion attempts and monitoring for inappropriate usage.",
        "comments": "Based on ATNA (RFC 3881).",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "DomainResource"
          }
        ],
        "mapping": [
          {
            "identity": "dicom",
            "map": "Message"
          },
          {
            "identity": "rim",
            "map": "ControlAct[moodCode=EVN]"
          },
          {
            "identity": "w5",
            "map": "infrastructure.information"
          }
        ]
      },
      {
        "path": "AuditEvent.id",
        "short": "Logical id of this artifact",
        "definition": "The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.",
        "comments": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation. Bundles always have an id, though it is usually a generated UUID.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "id"
          }
        ],
        "isSummary": true
      },
      {
        "path": "AuditEvent.meta",
        "short": "Metadata about the resource",
        "definition": "The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content may not always be associated with version changes to the resource.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Meta"
          }
        ],
        "isSummary": true
      },
      {
        "path": "AuditEvent.implicitRules",
        "short": "A set of rules under which this content was created",
        "definition": "A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content.",
        "comments": "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element as much as possible.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "uri"
          }
        ],
        "isModifier": true,
        "isSummary": true
      },
      {
        "path": "AuditEvent.language",
        "short": "Language of the resource content",
        "definition": "The base language in which the resource is written.",
        "comments": "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource  Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "code"
          }
        ],
        "binding": {
          "strength": "required",
          "description": "A human language.",
          "valueSetUri": "http://tools.ietf.org/html/bcp47"
        }
      },
      {
        "path": "AuditEvent.text",
        "short": "Text summary of the resource, for human interpretation",
        "definition": "A human-readable narrative that contains a summary of the resource, and may be used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it \"clinically safe\" for a human to just read the narrative. Resource definitions may define what content should be represented in the narrative to ensure clinical safety.",
        "comments": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative.",
        "alias": [
          "narrative",
          "html",
          "xhtml",
          "display"
        ],
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Narrative"
          }
        ],
        "condition": [
          "dom-1"
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "Act.text?"
          }
        ]
      },
      {
        "path": "AuditEvent.contained",
        "short": "Contained, inline Resources",
        "definition": "These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope.",
        "comments": "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again.",
        "alias": [
          "inline resources",
          "anonymous resources",
          "contained resources"
        ],
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Resource"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "path": "AuditEvent.extension",
        "short": "Additional Content defined by implementations",
        "definition": "May be used to represent additional information that is not part of the basic definition of the resource. In order to make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
        "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
        "alias": [
          "extensions",
          "user content"
        ],
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Extension"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "path": "AuditEvent.modifierExtension",
        "short": "Extensions that cannot be ignored",
        "definition": "May be used to represent additional information that is not part of the basic definition of the resource, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.",
        "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
        "alias": [
          "extensions",
          "user content"
        ],
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Extension"
          }
        ],
        "isModifier": true,
        "mapping": [
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "path": "AuditEvent.event",
        "short": "What was done",
        "definition": "Identifies the name, action type, time, and disposition of the audited event.",
        "requirements": "The event must be identified.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "BackboneElement"
          }
        ],
        "mapping": [
          {
            "identity": "w3c.prov",
            "map": "Activity"
          },
          {
            "identity": "dicom",
            "map": "EventIdentification"
          },
          {
            "identity": "rim",
            "map": "N/A (no nesting in v3)"
          }
        ]
      },
      {
        "path": "AuditEvent.event.id",
        "representation": [
          "xmlAttr"
        ],
        "short": "xml:id (or equivalent in JSON)",
        "definition": "unique id for the element within a resource (for internal references).",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "id"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "path": "AuditEvent.event.extension",
        "short": "Additional Content defined by implementations",
        "definition": "May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
        "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
        "alias": [
          "extensions",
          "user content"
        ],
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Extension"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "path": "AuditEvent.event.modifierExtension",
        "short": "Extensions that cannot be ignored",
        "definition": "May be used to represent additional information that is not part of the basic definition of the element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.",
        "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
        "alias": [
          "extensions",
          "user content",
          "modifiers"
        ],
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Extension"
          }
        ],
        "isModifier": true,
        "mapping": [
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "path": "AuditEvent.event.type",
        "short": "Type/identifier of event",
        "definition": "Identifier for a family of the event.  For example, a menu item, program, rule, policy, function code, application name or URL. It identifies the performed function.",
        "requirements": "This identifies the performed function. For \"Execute\" Event Action Code audit records, this identifies the application function performed.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Coding"
          }
        ],
        "isSummary": true,
        "binding": {
          "strength": "extensible",
          "description": "Type of event.",
          "valueSetReference": {
            "reference": "http://hl7.org/fhir/ValueSet/audit-event-type"
          }
        },
        "mapping": [
          {
            "identity": "dicom",
            "map": "EventId"
          },
          {
            "identity": "rim",
            "map": ".code (type, subtype and action are pre-coordinated or sent as translations)"
          },
          {
            "identity": "w5",
            "map": "what"
          }
        ]
      },
      {
        "path": "AuditEvent.event.subtype",
        "short": "More specific type/id for the event",
        "definition": "Identifier for the category of event.",
        "requirements": "This field enables queries of messages by implementation-defined event categories.",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Coding"
          }
        ],
        "isSummary": true,
        "binding": {
          "strength": "extensible",
          "description": "Sub-type of event.",
          "valueSetReference": {
            "reference": "http://hl7.org/fhir/ValueSet/audit-event-sub-type"
          }
        },
        "mapping": [
          {
            "identity": "dicom",
            "map": "EventTypeCode"
          },
          {
            "identity": "rim",
            "map": ".code (type, subtype and action are pre-coordinated or sent as translations)"
          },
          {
            "identity": "w5",
            "map": "what"
          }
        ]
      },
      {
        "path": "AuditEvent.event.action",
        "short": "Type of action performed during the event",
        "definition": "Indicator for type of action performed during the event that generated the audit.",
        "requirements": "This broadly indicates what kind of action was done on the Participant Object.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "code"
          }
        ],
        "isSummary": true,
        "binding": {
          "strength": "required",
          "description": "Indicator for type of action performed during the event that generated the audit.",
          "valueSetReference": {
            "reference": "http://hl7.org/fhir/ValueSet/audit-event-action"
          }
        },
        "mapping": [
          {
            "identity": "dicom",
            "map": "EventActionCode"
          },
          {
            "identity": "rim",
            "map": ".code (type, subtype and action are pre-coordinated or sent as translations)"
          },
          {
            "identity": "w5",
            "map": "what"
          }
        ]
      },
      {
        "path": "AuditEvent.event.dateTime",
        "short": "Time when the event occurred on source",
        "definition": "The time when the event occurred on the source.",
        "comments": "In a distributed system, some sort of common time base (e.g. an NTP [RFC1305] server) is a good implementation tactic.",
        "requirements": "This ties an event to a specific date and time. Security audits typically require a consistent time base (e.g. UTC), to eliminate time-zone issues arising from geographical distribution.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "instant"
          }
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "fhirprovenance",
            "map": "Provenance.recorded"
          },
          {
            "identity": "w3c.prov",
            "map": "Activity.when"
          },
          {
            "identity": "dicom",
            "map": "EventDateTime"
          },
          {
            "identity": "rim",
            "map": ".effectiveTime"
          },
          {
            "identity": "w5",
            "map": "when.recorded"
          }
        ]
      },
      {
        "path": "AuditEvent.event.outcome",
        "short": "Whether the event succeeded or failed",
        "definition": "Indicates whether the event succeeded or failed.",
        "comments": "In some cases a \"success\" may be partial, for example, an incomplete or interrupted transfer of a radiological study. For the purpose of establishing accountability, these distinctions are not relevant.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "code"
          }
        ],
        "isSummary": true,
        "binding": {
          "strength": "required",
          "description": "Indicates whether the event succeeded or failed",
          "valueSetReference": {
            "reference": "http://hl7.org/fhir/ValueSet/audit-event-outcome"
          }
        },
        "mapping": [
          {
            "identity": "dicom",
            "map": "EventOutcomeIndicator"
          },
          {
            "identity": "rim",
            "map": ".actionNegationInd"
          },
          {
            "identity": "w5",
            "map": "what"
          }
        ]
      },
      {
        "path": "AuditEvent.event.outcomeDesc",
        "short": "Description of the event outcome",
        "definition": "A free text description of the outcome of the event.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "dicom",
            "map": "EventOutcomeDescription"
          },
          {
            "identity": "rim",
            "map": ".outboundRelationship[typeCode=OUT].target.text"
          },
          {
            "identity": "w5",
            "map": "what"
          }
        ]
      },
      {
        "path": "AuditEvent.event.purposeOfEvent",
        "short": "The purposeOfUse of the event",
        "definition": "The purposeOfUse (reason) that was used during the event being recorded.",
        "comments": "Use participant.purposeOfUse when you know that is specific to the participant, otherwise use event.purposeOfEvent. For example, during a machine-to-machine transfer it might not be obvious to the audit system who caused the event, but it does know why.",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Coding"
          }
        ],
        "isSummary": true,
        "binding": {
          "strength": "extensible",
          "description": "The reason the activity took place.",
          "valueSetReference": {
            "reference": "http://hl7.org/fhir/ValueSet/v3-PurposeOfUse"
          }
        },
        "mapping": [
          {
            "identity": "fhirprovenance",
            "map": "Provenance.reason, Provenance.activity"
          },
          {
            "identity": "w3c.prov",
            "map": "Activity.Activity"
          },
          {
            "identity": "dicom",
            "map": "EventPurposeOfUse"
          },
          {
            "identity": "rim",
            "map": "* .reasonCode [ControlActReason when Act.class = CACT Control Act]\n*.outboundRelationship[typeCode=RSON].target"
          },
          {
            "identity": "w5",
            "map": "why"
          }
        ]
      },
      {
        "path": "AuditEvent.participant",
        "short": "A person, a hardware device or software process",
        "definition": "A person, a hardware device or software process.",
        "comments": "There may be more than one user per event, for example, in cases of actions initiated by one user for other users, or in events that involve more than one user, hardware device, or system process. However, only one user may be the initiator/requestor for the event.",
        "requirements": "The event has one or more active participants.",
        "min": 1,
        "max": "*",
        "type": [
          {
            "code": "BackboneElement"
          }
        ],
        "mapping": [
          {
            "identity": "fhirprovenance",
            "map": "Provenance.agent"
          },
          {
            "identity": "w3c.prov",
            "map": "Agent"
          },
          {
            "identity": "dicom",
            "map": "ActiveParticipant"
          },
          {
            "identity": "rim",
            "map": ".participation"
          },
          {
            "identity": "w5",
            "map": "who"
          }
        ]
      },
      {
        "path": "AuditEvent.participant.id",
        "representation": [
          "xmlAttr"
        ],
        "short": "xml:id (or equivalent in JSON)",
        "definition": "unique id for the element within a resource (for internal references).",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "id"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "path": "AuditEvent.participant.extension",
        "short": "Additional Content defined by implementations",
        "definition": "May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
        "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
        "alias": [
          "extensions",
          "user content"
        ],
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Extension"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "path": "AuditEvent.participant.modifierExtension",
        "short": "Extensions that cannot be ignored",
        "definition": "May be used to represent additional information that is not part of the basic definition of the element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.",
        "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
        "alias": [
          "extensions",
          "user content",
          "modifiers"
        ],
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Extension"
          }
        ],
        "isModifier": true,
        "mapping": [
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "path": "AuditEvent.participant.role",
        "short": "User roles (e.g. local RBAC codes)",
        "definition": "Specification of the role(s) the user plays when performing the event. Usually the codes used in this element are local codes defined by the role-based access control security system used in the local context.",
        "requirements": "This value ties an audited event to a user's role(s). It is an optional value that might be used to group events for analysis by user functional role categories.",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "binding": {
          "strength": "extensible",
          "description": "Role(s) the user plays (from RBAC).",
          "valueSetReference": {
            "reference": "http://hl7.org/fhir/ValueSet/dicm-402-roleid"
          }
        },
        "mapping": [
          {
            "identity": "fhirprovenance",
            "map": "Provenance.agent.role"
          },
          {
            "identity": "w3c.prov",
            "map": "Agent.Attribution"
          },
          {
            "identity": "dicom",
            "map": "RoleIdCode"
          },
          {
            "identity": "rim",
            "map": ".typeCode and/or .functionCode"
          },
          {
            "identity": "w5",
            "map": "who"
          }
        ]
      },
      {
        "path": "AuditEvent.participant.reference",
        "short": "Direct reference to resource",
        "definition": "Direct reference to a resource that identifies the participant.",
        "requirements": "This field ties an audit event to a specific resource.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/Practitioner"
            ]
          },
          {
            "code": "Reference",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/Organization"
            ]
          },
          {
            "code": "Reference",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/Device"
            ]
          },
          {
            "code": "Reference",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/Patient"
            ]
          },
          {
            "code": "Reference",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/RelatedPerson"
            ]
          }
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "fhirprovenance",
            "map": "Provenance.agent.actor"
          },
          {
            "identity": "w3c.prov",
            "map": "Agent.Identity"
          },
          {
            "identity": "rim",
            "map": ".role"
          },
          {
            "identity": "w5",
            "map": "who"
          }
        ]
      },
      {
        "path": "AuditEvent.participant.userId",
        "short": "Unique identifier for the user",
        "definition": "Unique identifier for the user actively participating in the event.",
        "comments": "a unique value within the Audit Source ID. For node-based authentication -- where only the system hardware or process, but not a human user, is identified -- User ID would be the node name.",
        "requirements": "This field ties an audit event to a specific user.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Identifier"
          }
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "fhirprovenance",
            "map": "Provenance.agent.userId"
          },
          {
            "identity": "w3c.prov",
            "map": "Agent.Identity"
          },
          {
            "identity": "dicom",
            "map": "UserId"
          },
          {
            "identity": "rim",
            "map": ".id"
          },
          {
            "identity": "w5",
            "map": "who"
          }
        ]
      },
      {
        "path": "AuditEvent.participant.altId",
        "short": "Alternative User id e.g. authentication",
        "definition": "Alternative Participant Identifier. For a human, this should be a user identifier text string from authentication system. This identifier would be one known to a common authentication system (e.g. single sign-on), if available.",
        "requirements": "In some situations a human user may authenticate with one identity but, to access a specific application system, may use a synonymous identify. For example, some \"single sign on\" implementations will do this. The alternative identifier would then be the original identify  used for authentication, and the User ID is the one known to and used by the application.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ],
        "mapping": [
          {
            "identity": "w3c.prov",
            "map": "Agent.Identity"
          },
          {
            "identity": "dicom",
            "map": "AlternativeUserId"
          },
          {
            "identity": "rim",
            "map": ".id (distinguish id type by root)"
          },
          {
            "identity": "w5",
            "map": "who"
          }
        ]
      },
      {
        "path": "AuditEvent.participant.name",
        "short": "Human-meaningful name for the user",
        "definition": "Human-meaningful name for the user.",
        "requirements": "The User ID and Authorization User ID may be internal or otherwise obscure values. This field assists the auditor in identifying the actual user.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ],
        "mapping": [
          {
            "identity": "w3c.prov",
            "map": "Agent.Identity"
          },
          {
            "identity": "dicom",
            "map": "UserName"
          },
          {
            "identity": "rim",
            "map": ".name"
          },
          {
            "identity": "w5",
            "map": "who"
          }
        ]
      },
      {
        "path": "AuditEvent.participant.requestor",
        "short": "Whether user is initiator",
        "definition": "Indicator that the user is or is not the requestor, or initiator, for the event being audited.",
        "comments": "There can only be one initiator. If the initiator is not clear, then do not choose any one participant as the initiator.",
        "requirements": "This value is used to distinguish between requestor-users and recipient-users. For example, one person may initiate a report-output to be sent to another user.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "boolean"
          }
        ],
        "mapping": [
          {
            "identity": "dicom",
            "map": "UserIsRequestor"
          },
          {
            "identity": "rim",
            "map": "If participation.typeCode was author, then true"
          },
          {
            "identity": "w5",
            "map": "who"
          }
        ]
      },
      {
        "path": "AuditEvent.participant.location",
        "short": "Where",
        "definition": "Where the event occurred.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/Location"
            ]
          }
        ],
        "mapping": [
          {
            "identity": "fhirprovenance",
            "map": "Provenance.location"
          },
          {
            "identity": "w3c.prov",
            "map": "Activity.location"
          },
          {
            "identity": "rim",
            "map": "* Role.Class =SDLOC\n*Role.Code = ServiceDeliveryLocationRoleType\n *Entity.Code  = PlaceEntityType = df.Types of places for  Entity.Class = PLC\n*EntityClass = PLC = df.A physical place or site with its containing structure. May be natural or man-made. The geographic position of a place may or may not be constant."
          },
          {
            "identity": "w5",
            "map": "where"
          }
        ]
      },
      {
        "path": "AuditEvent.participant.policy",
        "short": "Policy that authorized event",
        "definition": "The policy or plan that authorized the activity being recorded. Typically, a single activity may have multiple applicable policies, such as patient consent, guarantor funding, etc. The policy would also indicate the security token used.",
        "comments": "For example: Where an OAuth token authorizes, the unique identifier from the OAuth token is placed into the policy element Where a policy engine (e.g. XACML) holds policy logic, the unique policy identifier is placed into the policy element.",
        "requirements": "This value is used retrospectively to determine the authorization policies.",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "uri"
          }
        ],
        "mapping": [
          {
            "identity": "fhirprovenance",
            "map": "Provenance.policy"
          },
          {
            "identity": "dicom",
            "map": "ParticipantRoleIDCode"
          },
          {
            "identity": "rim",
            "map": "ActPolicyType"
          },
          {
            "identity": "w5",
            "map": "why"
          }
        ]
      },
      {
        "path": "AuditEvent.participant.media",
        "short": "Type of media",
        "definition": "Type of media involved. Used when the event is about exporting/importing onto media.",
        "requirements": "Usually, this is used instead of specifying a network address. This field is not used for Media Id (i.e. the serial number of a CD).",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Coding"
          }
        ],
        "binding": {
          "strength": "extensible",
          "description": "Used when the event is about exporting/importing onto media.",
          "valueSetReference": {
            "reference": "http://hl7.org/fhir/ValueSet/dicm-405-mediatype"
          }
        },
        "mapping": [
          {
            "identity": "dicom",
            "map": "MediaType"
          },
          {
            "identity": "rim",
            "map": ".player.description.mediaType"
          },
          {
            "identity": "w5",
            "map": "where"
          }
        ]
      },
      {
        "path": "AuditEvent.participant.network",
        "short": "Logical network location for application activity",
        "definition": "Logical network location for application activity, if the activity has a network location.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "BackboneElement"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": ".player.description.reference"
          },
          {
            "identity": "w5",
            "map": "where"
          }
        ]
      },
      {
        "path": "AuditEvent.participant.network.id",
        "representation": [
          "xmlAttr"
        ],
        "short": "xml:id (or equivalent in JSON)",
        "definition": "unique id for the element within a resource (for internal references).",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "id"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "path": "AuditEvent.participant.network.extension",
        "short": "Additional Content defined by implementations",
        "definition": "May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
        "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
        "alias": [
          "extensions",
          "user content"
        ],
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Extension"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "path": "AuditEvent.participant.network.modifierExtension",
        "short": "Extensions that cannot be ignored",
        "definition": "May be used to represent additional information that is not part of the basic definition of the element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.",
        "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
        "alias": [
          "extensions",
          "user content",
          "modifiers"
        ],
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Extension"
          }
        ],
        "isModifier": true,
        "mapping": [
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "path": "AuditEvent.participant.network.address",
        "short": "Identifier for the network access point of the user device",
        "definition": "An identifier for the network access point of the user device for the audit event.",
        "comments": "This could be a device id, IP address or some other identifier associated with a device.",
        "requirements": "This datum identifies the user's network access point, which may be distinct from the server that performed the action. It is an optional value that may be used to group events recorded on separate servers for analysis of a specific network access point's data access across all servers.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ],
        "mapping": [
          {
            "identity": "w3c.prov",
            "map": "Agent.Location"
          },
          {
            "identity": "dicom",
            "map": "NetworkAccessPointID"
          },
          {
            "identity": "rim",
            "map": "pre-coordinated into URL"
          },
          {
            "identity": "w5",
            "map": "where"
          }
        ]
      },
      {
        "path": "AuditEvent.participant.network.type",
        "short": "The type of network access point",
        "definition": "An identifier for the type of network access point that originated the audit event.",
        "requirements": "This datum identifies the type of network access point identifier of the user device for the audit event. It is an optional value that may be used to group events recorded on separate servers for analysis of access according to a network access point's type.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "code"
          }
        ],
        "binding": {
          "strength": "required",
          "description": "The type of network access point of this participant in the audit event",
          "valueSetReference": {
            "reference": "http://hl7.org/fhir/ValueSet/network-type"
          }
        },
        "mapping": [
          {
            "identity": "dicom",
            "map": "NetworkAccessPointTypeCode"
          },
          {
            "identity": "rim",
            "map": "pre-coordinated into URL"
          },
          {
            "identity": "w5",
            "map": "where"
          }
        ]
      },
      {
        "path": "AuditEvent.participant.purposeOfUse",
        "short": "Reason given for this user",
        "definition": "The reason (purpose of use), specific to this participant, that was used during the event being recorded.",
        "comments": "Use participant.purposeOfUse when you know that is specific to the participant, otherwise use event.purposeOfEvent. For example, during a machine-to-machine transfer it might not be obvious to the audit system who caused the event, but it does know why.",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Coding"
          }
        ],
        "binding": {
          "strength": "extensible",
          "description": "The reason the activity took place.",
          "valueSetReference": {
            "reference": "http://hl7.org/fhir/ValueSet/v3-PurposeOfUse"
          }
        },
        "mapping": [
          {
            "identity": "w3c.prov",
            "map": "Agent.Activity"
          },
          {
            "identity": "rim",
            "map": "*.reasonCode [ActHealthInformationPurposeOfUseReason codes/v:PurposeOfUse\n(2.16.840.1.113883.1.11.20448)\n* .outboundRelationship[typeCode=RSON or SUBJ].target"
          },
          {
            "identity": "w5",
            "map": "why"
          }
        ]
      },
      {
        "path": "AuditEvent.source",
        "short": "Application systems and processes",
        "definition": "Application systems and processes.",
        "comments": "Since multi-tier, distributed, or composite applications make source identification ambiguous, this collection of fields may repeat for each application or process actively involved in the event. For example, multiple value-sets can identify participating web servers, application processes, and database server threads in an n-tier distributed application. Passive event participants (e.g. low-level network transports) need not be identified.",
        "requirements": "The event is reported by one source.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "BackboneElement"
          }
        ],
        "mapping": [
          {
            "identity": "dicom",
            "map": "AuditSourceIdentification"
          },
          {
            "identity": "rim",
            "map": ".participation[typeCode=INF].role[classCode=ASSIGN].player[classCode=DEV, determinerCode=INSTANCE]"
          },
          {
            "identity": "w5",
            "map": "who.witness"
          }
        ]
      },
      {
        "path": "AuditEvent.source.id",
        "representation": [
          "xmlAttr"
        ],
        "short": "xml:id (or equivalent in JSON)",
        "definition": "unique id for the element within a resource (for internal references).",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "id"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "path": "AuditEvent.source.extension",
        "short": "Additional Content defined by implementations",
        "definition": "May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
        "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
        "alias": [
          "extensions",
          "user content"
        ],
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Extension"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "path": "AuditEvent.source.modifierExtension",
        "short": "Extensions that cannot be ignored",
        "definition": "May be used to represent additional information that is not part of the basic definition of the element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.",
        "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
        "alias": [
          "extensions",
          "user content",
          "modifiers"
        ],
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Extension"
          }
        ],
        "isModifier": true,
        "mapping": [
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "path": "AuditEvent.source.site",
        "short": "Logical source location within the enterprise",
        "definition": "Logical source location within the healthcare enterprise network.  For example, a hospital or other provider location within a multi-entity provider group.",
        "requirements": "This value differentiates among the sites in a multi-site enterprise health information system.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ],
        "mapping": [
          {
            "identity": "dicom",
            "map": "AuditEnterpriseSiteId"
          },
          {
            "identity": "rim",
            "map": ".scopedRole[classCode=LOCE].player.desc"
          },
          {
            "identity": "w5",
            "map": "who.witness"
          }
        ]
      },
      {
        "path": "AuditEvent.source.identifier",
        "short": "The identity of source detecting the event",
        "definition": "Identifier of the source where the event was detected.",
        "requirements": "This field ties the event to a specific source system. It may be used to group events for analysis according to where the event was detected.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Identifier"
          }
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "dicom",
            "map": "AuditSourceId"
          },
          {
            "identity": "rim",
            "map": ".id"
          },
          {
            "identity": "w5",
            "map": "who.witness"
          }
        ]
      },
      {
        "path": "AuditEvent.source.type",
        "short": "The type of source where event originated",
        "definition": "Code specifying the type of source where event originated.",
        "requirements": "This field indicates which type of source is identified by the Audit Source ID. It is an optional value that may be used to group events for analysis according to the type of source where the event occurred.",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Coding"
          }
        ],
        "binding": {
          "strength": "extensible",
          "description": "Code specifying the type of system that detected and recorded the event.",
          "valueSetReference": {
            "reference": "http://hl7.org/fhir/ValueSet/audit-source-type"
          }
        },
        "mapping": [
          {
            "identity": "dicom",
            "map": "AuditSourceTypeCode"
          },
          {
            "identity": "rim",
            "map": ".code"
          },
          {
            "identity": "w5",
            "map": "who.witness"
          }
        ]
      },
      {
        "path": "AuditEvent.object",
        "short": "Specific instances of data or objects that have been accessed",
        "definition": "Specific instances of data or objects that have been accessed.",
        "comments": "Required unless the values for Event Identification, Active Participant Identification, and Audit Source Identification are sufficient to document the entire auditable event. Because events may have more than one participant object, this group can be a repeating set of values.",
        "requirements": "The event may have other objects involved.",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "BackboneElement"
          }
        ],
        "constraint": [
          {
            "key": "sev-1",
            "severity": "error",
            "human": "Either a name or a query (NOT both)",
            "xpath": "not(exists(f:name)) or not(exists(f:query))"
          }
        ],
        "mapping": [
          {
            "identity": "fhirprovenance",
            "map": "Provenance.target, Provenance.entity"
          },
          {
            "identity": "w3c.prov",
            "map": "Entity"
          },
          {
            "identity": "dicom",
            "map": "ParticipantObjectIdentification"
          },
          {
            "identity": "rim",
            "map": ".outboundRelationship[typeCode=SUBJ].target  or  .participation[typeCode=SBJ].role"
          },
          {
            "identity": "w5",
            "map": "what"
          }
        ]
      },
      {
        "path": "AuditEvent.object.id",
        "representation": [
          "xmlAttr"
        ],
        "short": "xml:id (or equivalent in JSON)",
        "definition": "unique id for the element within a resource (for internal references).",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "id"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "path": "AuditEvent.object.extension",
        "short": "Additional Content defined by implementations",
        "definition": "May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
        "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
        "alias": [
          "extensions",
          "user content"
        ],
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Extension"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "path": "AuditEvent.object.modifierExtension",
        "short": "Extensions that cannot be ignored",
        "definition": "May be used to represent additional information that is not part of the basic definition of the element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.",
        "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
        "alias": [
          "extensions",
          "user content",
          "modifiers"
        ],
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Extension"
          }
        ],
        "isModifier": true,
        "mapping": [
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "path": "AuditEvent.object.identifier",
        "short": "Specific instance of object (e.g. versioned)",
        "definition": "Identifies a specific instance of the participant object. The reference should always be version specific.",
        "comments": "Identifier detail depends on object type.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Identifier"
          }
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "dicom",
            "map": "ParticipantObjectID and ParticipantObjectIDTypeCode"
          },
          {
            "identity": "rim",
            "map": ".id.extension"
          },
          {
            "identity": "w5",
            "map": "what"
          }
        ]
      },
      {
        "path": "AuditEvent.object.reference",
        "short": "Specific instance of resource (e.g. versioned)",
        "definition": "Identifies a specific instance of the participant object. The reference should always be version specific.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/Resource"
            ]
          }
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "fhirprovenance",
            "map": "Provenance.target, Provenance.entity.reference"
          },
          {
            "identity": "dicom",
            "map": "ParticipantObjectID"
          },
          {
            "identity": "rim",
            "map": "[self]"
          },
          {
            "identity": "w5",
            "map": "what"
          }
        ]
      },
      {
        "path": "AuditEvent.object.type",
        "short": "Type of object involved",
        "definition": "The type of the object that was involved in this audit event.",
        "comments": "This value is distinct from the user's role or any user relationship to the participant object.",
        "requirements": "To describe the object being acted upon. In addition to queries on the subject of the action in an auditable event, it is also important to be able to query on the object type for the action.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Coding"
          }
        ],
        "binding": {
          "strength": "extensible",
          "description": "Code for the object type involved audited.",
          "valueSetReference": {
            "reference": "http://hl7.org/fhir/ValueSet/object-type"
          }
        },
        "mapping": [
          {
            "identity": "fhirprovenance",
            "map": "Provenance.entity.type"
          },
          {
            "identity": "w3c.prov",
            "map": "Entity.type"
          },
          {
            "identity": "dicom",
            "map": "ParticipantObjectTypeCode"
          },
          {
            "identity": "rim",
            "map": "[self::Act].code or role.player.code"
          },
          {
            "identity": "w5",
            "map": "what"
          }
        ]
      },
      {
        "path": "AuditEvent.object.role",
        "short": "What role the Object played",
        "definition": "Code representing the functional application role of Participant Object being audited.",
        "comments": "See RFC 3881 for rules concerning matches between role and type.",
        "requirements": "For some detailed audit analysis it may be necessary to indicate a more granular type of participant, based on the application role it serves.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Coding"
          }
        ],
        "binding": {
          "strength": "extensible",
          "description": "Code representing the role the Object played in the event.",
          "valueSetReference": {
            "reference": "http://hl7.org/fhir/ValueSet/object-role"
          }
        },
        "mapping": [
          {
            "identity": "w3c.prov",
            "map": "Entity.role"
          },
          {
            "identity": "dicom",
            "map": "ParticipantObjectTypeCodeRole"
          },
          {
            "identity": "rim",
            "map": "role.code (not sure what this would mean for an Act)"
          },
          {
            "identity": "w5",
            "map": "context"
          }
        ]
      },
      {
        "path": "AuditEvent.object.lifecycle",
        "short": "Life-cycle stage for the object",
        "definition": "Identifier for the data life-cycle stage for the participant object.",
        "comments": "This can be used to provide an audit trail for data, over time, as it passes through the system.",
        "requirements": "Institutional policies for privacy and security may optionally fall under different accountability rules based on data life cycle. This provides a differentiating value for those cases.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Coding"
          }
        ],
        "binding": {
          "strength": "extensible",
          "description": "Identifier for the data life-cycle stage for the object.",
          "valueSetReference": {
            "reference": "http://hl7.org/fhir/ValueSet/object-lifecycle"
          }
        },
        "mapping": [
          {
            "identity": "fhirprovenance",
            "map": "Provenance.entity.role"
          },
          {
            "identity": "w3c.prov",
            "map": "Entity.role"
          },
          {
            "identity": "dicom",
            "map": "ParticipantObjectDataLifeCycle"
          },
          {
            "identity": "rim",
            "map": "target of ObservationEvent[code=\"lifecycle\"].value"
          },
          {
            "identity": "w5",
            "map": "context"
          }
        ]
      },
      {
        "path": "AuditEvent.object.securityLabel",
        "short": "Security labels applied to the object",
        "definition": "Denotes security labels for the identified object.",
        "requirements": "This field identifies the security labels for a specific instance of an object, such as a patient, to detect/track privacy and security issues.",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Coding"
          }
        ],
        "binding": {
          "strength": "extensible",
          "description": "Security Labels from the Healthcare Privacy and Security Classification System.",
          "valueSetReference": {
            "reference": "http://hl7.org/fhir/ValueSet/security-labels"
          }
        },
        "mapping": [
          {
            "identity": "dicom",
            "map": "ParticipantObjectSensitivity"
          },
          {
            "identity": "rim",
            "map": ".confidentialityCode"
          },
          {
            "identity": "w5",
            "map": "context"
          }
        ]
      },
      {
        "path": "AuditEvent.object.name",
        "short": "Instance-specific descriptor for Object",
        "definition": "An instance-specific descriptor of the Participant Object ID audited, such as a person's name.",
        "comments": "This field may be used in a query/report to identify audit events for a specific person.  For example, where multiple synonymous Participant Object IDs (patient number, medical record number, encounter number, etc.) have been used.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ],
        "condition": [
          "sev-1"
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "w3c.prov",
            "map": "Entity.Label"
          },
          {
            "identity": "dicom",
            "map": "ParticipantObjectName"
          },
          {
            "identity": "rim",
            "map": ".title"
          },
          {
            "identity": "w5",
            "map": "context"
          }
        ]
      },
      {
        "path": "AuditEvent.object.description",
        "short": "Descriptive text",
        "definition": "Text that describes the object in more detail.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ],
        "mapping": [
          {
            "identity": "dicom",
            "map": "ParticipantObjectDescription"
          },
          {
            "identity": "rim",
            "map": ".text"
          },
          {
            "identity": "w5",
            "map": "context"
          }
        ]
      },
      {
        "path": "AuditEvent.object.query",
        "short": "Actual query for object",
        "definition": "The actual query for a query-type participant object.",
        "requirements": "For query events it may be necessary to capture the actual query input to the query process in order to identify the specific event. Because of differences among query implementations and data encoding for them, this is a base 64 encoded data blob. It may be subsequently decoded or interpreted by downstream audit analysis processing.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "base64Binary"
          }
        ],
        "condition": [
          "sev-1"
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "dicom",
            "map": "ParticipantObjectQuery"
          },
          {
            "identity": "rim",
            "map": "No mapping"
          },
          {
            "identity": "w5",
            "map": "context"
          }
        ]
      },
      {
        "path": "AuditEvent.object.detail",
        "short": "Additional Information about the Object",
        "definition": "Additional Information about the Object.",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "BackboneElement"
          }
        ],
        "mapping": [
          {
            "identity": "dicom",
            "map": "ParticipantObjectDetail"
          },
          {
            "identity": "rim",
            "map": ".inboundRelationship[typeCode=SUBJ].target[classCode=OBS, moodCode=EVN]"
          },
          {
            "identity": "w5",
            "map": "context"
          }
        ]
      },
      {
        "path": "AuditEvent.object.detail.id",
        "representation": [
          "xmlAttr"
        ],
        "short": "xml:id (or equivalent in JSON)",
        "definition": "unique id for the element within a resource (for internal references).",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "id"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "path": "AuditEvent.object.detail.extension",
        "short": "Additional Content defined by implementations",
        "definition": "May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
        "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
        "alias": [
          "extensions",
          "user content"
        ],
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Extension"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "path": "AuditEvent.object.detail.modifierExtension",
        "short": "Extensions that cannot be ignored",
        "definition": "May be used to represent additional information that is not part of the basic definition of the element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.",
        "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
        "alias": [
          "extensions",
          "user content",
          "modifiers"
        ],
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Extension"
          }
        ],
        "isModifier": true,
        "mapping": [
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "path": "AuditEvent.object.detail.type",
        "short": "Name of the property",
        "definition": "Name of the property.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ],
        "mapping": [
          {
            "identity": "dicom",
            "map": "ParticipantObjectDetail.type"
          },
          {
            "identity": "rim",
            "map": ".code"
          },
          {
            "identity": "w5",
            "map": "context"
          }
        ]
      },
      {
        "path": "AuditEvent.object.detail.value",
        "short": "Property value",
        "definition": "Property value.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "base64Binary"
          }
        ],
        "mapping": [
          {
            "identity": "dicom",
            "map": "ParticipantObjectDetail.value"
          },
          {
            "identity": "rim",
            "map": ".value"
          },
          {
            "identity": "w5",
            "map": "context"
          }
        ]
      }
    ]
  },
  "differential": {
    "element": [
      {
        "path": "AuditEvent",
        "short": "Event record kept for security purposes",
        "definition": "A record of an event made for purposes of maintaining a security log. Typical uses include detection of intrusion attempts and monitoring for inappropriate usage.",
        "comments": "Based on ATNA (RFC 3881).",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "DomainResource"
          }
        ],
        "mapping": [
          {
            "identity": "dicom",
            "map": "Message"
          },
          {
            "identity": "rim",
            "map": "ControlAct[moodCode=EVN]"
          },
          {
            "identity": "w5",
            "map": "infrastructure.information"
          }
        ]
      },
      {
        "path": "AuditEvent.event",
        "short": "What was done",
        "definition": "Identifies the name, action type, time, and disposition of the audited event.",
        "requirements": "The event must be identified.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "BackboneElement"
          }
        ],
        "mapping": [
          {
            "identity": "w3c.prov",
            "map": "Activity"
          },
          {
            "identity": "dicom",
            "map": "EventIdentification"
          },
          {
            "identity": "rim",
            "map": "N/A (no nesting in v3)"
          }
        ]
      },
      {
        "path": "AuditEvent.event.type",
        "short": "Type/identifier of event",
        "definition": "Identifier for a family of the event.  For example, a menu item, program, rule, policy, function code, application name or URL. It identifies the performed function.",
        "requirements": "This identifies the performed function. For \"Execute\" Event Action Code audit records, this identifies the application function performed.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Coding"
          }
        ],
        "isSummary": true,
        "binding": {
          "strength": "extensible",
          "description": "Type of event.",
          "valueSetReference": {
            "reference": "http://hl7.org/fhir/ValueSet/audit-event-type"
          }
        },
        "mapping": [
          {
            "identity": "dicom",
            "map": "EventId"
          },
          {
            "identity": "rim",
            "map": ".code (type, subtype and action are pre-coordinated or sent as translations)"
          },
          {
            "identity": "w5",
            "map": "what"
          }
        ]
      },
      {
        "path": "AuditEvent.event.subtype",
        "short": "More specific type/id for the event",
        "definition": "Identifier for the category of event.",
        "requirements": "This field enables queries of messages by implementation-defined event categories.",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Coding"
          }
        ],
        "isSummary": true,
        "binding": {
          "strength": "extensible",
          "description": "Sub-type of event.",
          "valueSetReference": {
            "reference": "http://hl7.org/fhir/ValueSet/audit-event-sub-type"
          }
        },
        "mapping": [
          {
            "identity": "dicom",
            "map": "EventTypeCode"
          },
          {
            "identity": "rim",
            "map": ".code (type, subtype and action are pre-coordinated or sent as translations)"
          },
          {
            "identity": "w5",
            "map": "what"
          }
        ]
      },
      {
        "path": "AuditEvent.event.action",
        "short": "Type of action performed during the event",
        "definition": "Indicator for type of action performed during the event that generated the audit.",
        "requirements": "This broadly indicates what kind of action was done on the Participant Object.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "code"
          }
        ],
        "isSummary": true,
        "binding": {
          "strength": "required",
          "description": "Indicator for type of action performed during the event that generated the audit.",
          "valueSetReference": {
            "reference": "http://hl7.org/fhir/ValueSet/audit-event-action"
          }
        },
        "mapping": [
          {
            "identity": "dicom",
            "map": "EventActionCode"
          },
          {
            "identity": "rim",
            "map": ".code (type, subtype and action are pre-coordinated or sent as translations)"
          },
          {
            "identity": "w5",
            "map": "what"
          }
        ]
      },
      {
        "path": "AuditEvent.event.dateTime",
        "short": "Time when the event occurred on source",
        "definition": "The time when the event occurred on the source.",
        "comments": "In a distributed system, some sort of common time base (e.g. an NTP [RFC1305] server) is a good implementation tactic.",
        "requirements": "This ties an event to a specific date and time. Security audits typically require a consistent time base (e.g. UTC), to eliminate time-zone issues arising from geographical distribution.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "instant"
          }
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "fhirprovenance",
            "map": "Provenance.recorded"
          },
          {
            "identity": "w3c.prov",
            "map": "Activity.when"
          },
          {
            "identity": "dicom",
            "map": "EventDateTime"
          },
          {
            "identity": "rim",
            "map": ".effectiveTime"
          },
          {
            "identity": "w5",
            "map": "when.recorded"
          }
        ]
      },
      {
        "path": "AuditEvent.event.outcome",
        "short": "Whether the event succeeded or failed",
        "definition": "Indicates whether the event succeeded or failed.",
        "comments": "In some cases a \"success\" may be partial, for example, an incomplete or interrupted transfer of a radiological study. For the purpose of establishing accountability, these distinctions are not relevant.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "code"
          }
        ],
        "isSummary": true,
        "binding": {
          "strength": "required",
          "description": "Indicates whether the event succeeded or failed",
          "valueSetReference": {
            "reference": "http://hl7.org/fhir/ValueSet/audit-event-outcome"
          }
        },
        "mapping": [
          {
            "identity": "dicom",
            "map": "EventOutcomeIndicator"
          },
          {
            "identity": "rim",
            "map": ".actionNegationInd"
          },
          {
            "identity": "w5",
            "map": "what"
          }
        ]
      },
      {
        "path": "AuditEvent.event.outcomeDesc",
        "short": "Description of the event outcome",
        "definition": "A free text description of the outcome of the event.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "dicom",
            "map": "EventOutcomeDescription"
          },
          {
            "identity": "rim",
            "map": ".outboundRelationship[typeCode=OUT].target.text"
          },
          {
            "identity": "w5",
            "map": "what"
          }
        ]
      },
      {
        "path": "AuditEvent.event.purposeOfEvent",
        "short": "The purposeOfUse of the event",
        "definition": "The purposeOfUse (reason) that was used during the event being recorded.",
        "comments": "Use participant.purposeOfUse when you know that is specific to the participant, otherwise use event.purposeOfEvent. For example, during a machine-to-machine transfer it might not be obvious to the audit system who caused the event, but it does know why.",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Coding"
          }
        ],
        "isSummary": true,
        "binding": {
          "strength": "extensible",
          "description": "The reason the activity took place.",
          "valueSetReference": {
            "reference": "http://hl7.org/fhir/ValueSet/v3-PurposeOfUse"
          }
        },
        "mapping": [
          {
            "identity": "fhirprovenance",
            "map": "Provenance.reason, Provenance.activity"
          },
          {
            "identity": "w3c.prov",
            "map": "Activity.Activity"
          },
          {
            "identity": "dicom",
            "map": "EventPurposeOfUse"
          },
          {
            "identity": "rim",
            "map": "* .reasonCode [ControlActReason when Act.class = CACT Control Act]\n*.outboundRelationship[typeCode=RSON].target"
          },
          {
            "identity": "w5",
            "map": "why"
          }
        ]
      },
      {
        "path": "AuditEvent.participant",
        "short": "A person, a hardware device or software process",
        "definition": "A person, a hardware device or software process.",
        "comments": "There may be more than one user per event, for example, in cases of actions initiated by one user for other users, or in events that involve more than one user, hardware device, or system process. However, only one user may be the initiator/requestor for the event.",
        "requirements": "The event has one or more active participants.",
        "min": 1,
        "max": "*",
        "type": [
          {
            "code": "BackboneElement"
          }
        ],
        "mapping": [
          {
            "identity": "fhirprovenance",
            "map": "Provenance.agent"
          },
          {
            "identity": "w3c.prov",
            "map": "Agent"
          },
          {
            "identity": "dicom",
            "map": "ActiveParticipant"
          },
          {
            "identity": "rim",
            "map": ".participation"
          },
          {
            "identity": "w5",
            "map": "who"
          }
        ]
      },
      {
        "path": "AuditEvent.participant.role",
        "short": "User roles (e.g. local RBAC codes)",
        "definition": "Specification of the role(s) the user plays when performing the event. Usually the codes used in this element are local codes defined by the role-based access control security system used in the local context.",
        "requirements": "This value ties an audited event to a user's role(s). It is an optional value that might be used to group events for analysis by user functional role categories.",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "binding": {
          "strength": "extensible",
          "description": "Role(s) the user plays (from RBAC).",
          "valueSetReference": {
            "reference": "http://hl7.org/fhir/ValueSet/dicm-402-roleid"
          }
        },
        "mapping": [
          {
            "identity": "fhirprovenance",
            "map": "Provenance.agent.role"
          },
          {
            "identity": "w3c.prov",
            "map": "Agent.Attribution"
          },
          {
            "identity": "dicom",
            "map": "RoleIdCode"
          },
          {
            "identity": "rim",
            "map": ".typeCode and/or .functionCode"
          },
          {
            "identity": "w5",
            "map": "who"
          }
        ]
      },
      {
        "path": "AuditEvent.participant.reference",
        "short": "Direct reference to resource",
        "definition": "Direct reference to a resource that identifies the participant.",
        "requirements": "This field ties an audit event to a specific resource.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/Practitioner"
            ]
          },
          {
            "code": "Reference",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/Organization"
            ]
          },
          {
            "code": "Reference",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/Device"
            ]
          },
          {
            "code": "Reference",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/Patient"
            ]
          },
          {
            "code": "Reference",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/RelatedPerson"
            ]
          }
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "fhirprovenance",
            "map": "Provenance.agent.actor"
          },
          {
            "identity": "w3c.prov",
            "map": "Agent.Identity"
          },
          {
            "identity": "rim",
            "map": ".role"
          },
          {
            "identity": "w5",
            "map": "who"
          }
        ]
      },
      {
        "path": "AuditEvent.participant.userId",
        "short": "Unique identifier for the user",
        "definition": "Unique identifier for the user actively participating in the event.",
        "comments": "a unique value within the Audit Source ID. For node-based authentication -- where only the system hardware or process, but not a human user, is identified -- User ID would be the node name.",
        "requirements": "This field ties an audit event to a specific user.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Identifier"
          }
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "fhirprovenance",
            "map": "Provenance.agent.userId"
          },
          {
            "identity": "w3c.prov",
            "map": "Agent.Identity"
          },
          {
            "identity": "dicom",
            "map": "UserId"
          },
          {
            "identity": "rim",
            "map": ".id"
          },
          {
            "identity": "w5",
            "map": "who"
          }
        ]
      },
      {
        "path": "AuditEvent.participant.altId",
        "short": "Alternative User id e.g. authentication",
        "definition": "Alternative Participant Identifier. For a human, this should be a user identifier text string from authentication system. This identifier would be one known to a common authentication system (e.g. single sign-on), if available.",
        "requirements": "In some situations a human user may authenticate with one identity but, to access a specific application system, may use a synonymous identify. For example, some \"single sign on\" implementations will do this. The alternative identifier would then be the original identify  used for authentication, and the User ID is the one known to and used by the application.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ],
        "mapping": [
          {
            "identity": "w3c.prov",
            "map": "Agent.Identity"
          },
          {
            "identity": "dicom",
            "map": "AlternativeUserId"
          },
          {
            "identity": "rim",
            "map": ".id (distinguish id type by root)"
          },
          {
            "identity": "w5",
            "map": "who"
          }
        ]
      },
      {
        "path": "AuditEvent.participant.name",
        "short": "Human-meaningful name for the user",
        "definition": "Human-meaningful name for the user.",
        "requirements": "The User ID and Authorization User ID may be internal or otherwise obscure values. This field assists the auditor in identifying the actual user.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ],
        "mapping": [
          {
            "identity": "w3c.prov",
            "map": "Agent.Identity"
          },
          {
            "identity": "dicom",
            "map": "UserName"
          },
          {
            "identity": "rim",
            "map": ".name"
          },
          {
            "identity": "w5",
            "map": "who"
          }
        ]
      },
      {
        "path": "AuditEvent.participant.requestor",
        "short": "Whether user is initiator",
        "definition": "Indicator that the user is or is not the requestor, or initiator, for the event being audited.",
        "comments": "There can only be one initiator. If the initiator is not clear, then do not choose any one participant as the initiator.",
        "requirements": "This value is used to distinguish between requestor-users and recipient-users. For example, one person may initiate a report-output to be sent to another user.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "boolean"
          }
        ],
        "mapping": [
          {
            "identity": "dicom",
            "map": "UserIsRequestor"
          },
          {
            "identity": "rim",
            "map": "If participation.typeCode was author, then true"
          },
          {
            "identity": "w5",
            "map": "who"
          }
        ]
      },
      {
        "path": "AuditEvent.participant.location",
        "short": "Where",
        "definition": "Where the event occurred.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/Location"
            ]
          }
        ],
        "mapping": [
          {
            "identity": "fhirprovenance",
            "map": "Provenance.location"
          },
          {
            "identity": "w3c.prov",
            "map": "Activity.location"
          },
          {
            "identity": "rim",
            "map": "* Role.Class =SDLOC\n*Role.Code = ServiceDeliveryLocationRoleType\n *Entity.Code  = PlaceEntityType = df.Types of places for  Entity.Class = PLC\n*EntityClass = PLC = df.A physical place or site with its containing structure. May be natural or man-made. The geographic position of a place may or may not be constant."
          },
          {
            "identity": "w5",
            "map": "where"
          }
        ]
      },
      {
        "path": "AuditEvent.participant.policy",
        "short": "Policy that authorized event",
        "definition": "The policy or plan that authorized the activity being recorded. Typically, a single activity may have multiple applicable policies, such as patient consent, guarantor funding, etc. The policy would also indicate the security token used.",
        "comments": "For example: Where an OAuth token authorizes, the unique identifier from the OAuth token is placed into the policy element Where a policy engine (e.g. XACML) holds policy logic, the unique policy identifier is placed into the policy element.",
        "requirements": "This value is used retrospectively to determine the authorization policies.",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "uri"
          }
        ],
        "mapping": [
          {
            "identity": "fhirprovenance",
            "map": "Provenance.policy"
          },
          {
            "identity": "dicom",
            "map": "ParticipantRoleIDCode"
          },
          {
            "identity": "rim",
            "map": "ActPolicyType"
          },
          {
            "identity": "w5",
            "map": "why"
          }
        ]
      },
      {
        "path": "AuditEvent.participant.media",
        "short": "Type of media",
        "definition": "Type of media involved. Used when the event is about exporting/importing onto media.",
        "requirements": "Usually, this is used instead of specifying a network address. This field is not used for Media Id (i.e. the serial number of a CD).",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Coding"
          }
        ],
        "binding": {
          "strength": "extensible",
          "description": "Used when the event is about exporting/importing onto media.",
          "valueSetReference": {
            "reference": "http://hl7.org/fhir/ValueSet/dicm-405-mediatype"
          }
        },
        "mapping": [
          {
            "identity": "dicom",
            "map": "MediaType"
          },
          {
            "identity": "rim",
            "map": ".player.description.mediaType"
          },
          {
            "identity": "w5",
            "map": "where"
          }
        ]
      },
      {
        "path": "AuditEvent.participant.network",
        "short": "Logical network location for application activity",
        "definition": "Logical network location for application activity, if the activity has a network location.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "BackboneElement"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": ".player.description.reference"
          },
          {
            "identity": "w5",
            "map": "where"
          }
        ]
      },
      {
        "path": "AuditEvent.participant.network.address",
        "short": "Identifier for the network access point of the user device",
        "definition": "An identifier for the network access point of the user device for the audit event.",
        "comments": "This could be a device id, IP address or some other identifier associated with a device.",
        "requirements": "This datum identifies the user's network access point, which may be distinct from the server that performed the action. It is an optional value that may be used to group events recorded on separate servers for analysis of a specific network access point's data access across all servers.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ],
        "mapping": [
          {
            "identity": "w3c.prov",
            "map": "Agent.Location"
          },
          {
            "identity": "dicom",
            "map": "NetworkAccessPointID"
          },
          {
            "identity": "rim",
            "map": "pre-coordinated into URL"
          },
          {
            "identity": "w5",
            "map": "where"
          }
        ]
      },
      {
        "path": "AuditEvent.participant.network.type",
        "short": "The type of network access point",
        "definition": "An identifier for the type of network access point that originated the audit event.",
        "requirements": "This datum identifies the type of network access point identifier of the user device for the audit event. It is an optional value that may be used to group events recorded on separate servers for analysis of access according to a network access point's type.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "code"
          }
        ],
        "binding": {
          "strength": "required",
          "description": "The type of network access point of this participant in the audit event",
          "valueSetReference": {
            "reference": "http://hl7.org/fhir/ValueSet/network-type"
          }
        },
        "mapping": [
          {
            "identity": "dicom",
            "map": "NetworkAccessPointTypeCode"
          },
          {
            "identity": "rim",
            "map": "pre-coordinated into URL"
          },
          {
            "identity": "w5",
            "map": "where"
          }
        ]
      },
      {
        "path": "AuditEvent.participant.purposeOfUse",
        "short": "Reason given for this user",
        "definition": "The reason (purpose of use), specific to this participant, that was used during the event being recorded.",
        "comments": "Use participant.purposeOfUse when you know that is specific to the participant, otherwise use event.purposeOfEvent. For example, during a machine-to-machine transfer it might not be obvious to the audit system who caused the event, but it does know why.",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Coding"
          }
        ],
        "binding": {
          "strength": "extensible",
          "description": "The reason the activity took place.",
          "valueSetReference": {
            "reference": "http://hl7.org/fhir/ValueSet/v3-PurposeOfUse"
          }
        },
        "mapping": [
          {
            "identity": "w3c.prov",
            "map": "Agent.Activity"
          },
          {
            "identity": "rim",
            "map": "*.reasonCode [ActHealthInformationPurposeOfUseReason codes/v:PurposeOfUse\n(2.16.840.1.113883.1.11.20448)\n* .outboundRelationship[typeCode=RSON or SUBJ].target"
          },
          {
            "identity": "w5",
            "map": "why"
          }
        ]
      },
      {
        "path": "AuditEvent.source",
        "short": "Application systems and processes",
        "definition": "Application systems and processes.",
        "comments": "Since multi-tier, distributed, or composite applications make source identification ambiguous, this collection of fields may repeat for each application or process actively involved in the event. For example, multiple value-sets can identify participating web servers, application processes, and database server threads in an n-tier distributed application. Passive event participants (e.g. low-level network transports) need not be identified.",
        "requirements": "The event is reported by one source.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "BackboneElement"
          }
        ],
        "mapping": [
          {
            "identity": "dicom",
            "map": "AuditSourceIdentification"
          },
          {
            "identity": "rim",
            "map": ".participation[typeCode=INF].role[classCode=ASSIGN].player[classCode=DEV, determinerCode=INSTANCE]"
          },
          {
            "identity": "w5",
            "map": "who.witness"
          }
        ]
      },
      {
        "path": "AuditEvent.source.site",
        "short": "Logical source location within the enterprise",
        "definition": "Logical source location within the healthcare enterprise network.  For example, a hospital or other provider location within a multi-entity provider group.",
        "requirements": "This value differentiates among the sites in a multi-site enterprise health information system.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ],
        "mapping": [
          {
            "identity": "dicom",
            "map": "AuditEnterpriseSiteId"
          },
          {
            "identity": "rim",
            "map": ".scopedRole[classCode=LOCE].player.desc"
          },
          {
            "identity": "w5",
            "map": "who.witness"
          }
        ]
      },
      {
        "path": "AuditEvent.source.identifier",
        "short": "The identity of source detecting the event",
        "definition": "Identifier of the source where the event was detected.",
        "requirements": "This field ties the event to a specific source system. It may be used to group events for analysis according to where the event was detected.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Identifier"
          }
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "dicom",
            "map": "AuditSourceId"
          },
          {
            "identity": "rim",
            "map": ".id"
          },
          {
            "identity": "w5",
            "map": "who.witness"
          }
        ]
      },
      {
        "path": "AuditEvent.source.type",
        "short": "The type of source where event originated",
        "definition": "Code specifying the type of source where event originated.",
        "requirements": "This field indicates which type of source is identified by the Audit Source ID. It is an optional value that may be used to group events for analysis according to the type of source where the event occurred.",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Coding"
          }
        ],
        "binding": {
          "strength": "extensible",
          "description": "Code specifying the type of system that detected and recorded the event.",
          "valueSetReference": {
            "reference": "http://hl7.org/fhir/ValueSet/audit-source-type"
          }
        },
        "mapping": [
          {
            "identity": "dicom",
            "map": "AuditSourceTypeCode"
          },
          {
            "identity": "rim",
            "map": ".code"
          },
          {
            "identity": "w5",
            "map": "who.witness"
          }
        ]
      },
      {
        "path": "AuditEvent.object",
        "short": "Specific instances of data or objects that have been accessed",
        "definition": "Specific instances of data or objects that have been accessed.",
        "comments": "Required unless the values for Event Identification, Active Participant Identification, and Audit Source Identification are sufficient to document the entire auditable event. Because events may have more than one participant object, this group can be a repeating set of values.",
        "requirements": "The event may have other objects involved.",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "BackboneElement"
          }
        ],
        "constraint": [
          {
            "key": "sev-1",
            "severity": "error",
            "human": "Either a name or a query (NOT both)",
            "xpath": "not(exists(f:name)) or not(exists(f:query))"
          }
        ],
        "mapping": [
          {
            "identity": "fhirprovenance",
            "map": "Provenance.target, Provenance.entity"
          },
          {
            "identity": "w3c.prov",
            "map": "Entity"
          },
          {
            "identity": "dicom",
            "map": "ParticipantObjectIdentification"
          },
          {
            "identity": "rim",
            "map": ".outboundRelationship[typeCode=SUBJ].target  or  .participation[typeCode=SBJ].role"
          },
          {
            "identity": "w5",
            "map": "what"
          }
        ]
      },
      {
        "path": "AuditEvent.object.identifier",
        "short": "Specific instance of object (e.g. versioned)",
        "definition": "Identifies a specific instance of the participant object. The reference should always be version specific.",
        "comments": "Identifier detail depends on object type.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Identifier"
          }
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "dicom",
            "map": "ParticipantObjectID and ParticipantObjectIDTypeCode"
          },
          {
            "identity": "rim",
            "map": ".id.extension"
          },
          {
            "identity": "w5",
            "map": "what"
          }
        ]
      },
      {
        "path": "AuditEvent.object.reference",
        "short": "Specific instance of resource (e.g. versioned)",
        "definition": "Identifies a specific instance of the participant object. The reference should always be version specific.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/Resource"
            ]
          }
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "fhirprovenance",
            "map": "Provenance.target, Provenance.entity.reference"
          },
          {
            "identity": "dicom",
            "map": "ParticipantObjectID"
          },
          {
            "identity": "rim",
            "map": "[self]"
          },
          {
            "identity": "w5",
            "map": "what"
          }
        ]
      },
      {
        "path": "AuditEvent.object.type",
        "short": "Type of object involved",
        "definition": "The type of the object that was involved in this audit event.",
        "comments": "This value is distinct from the user's role or any user relationship to the participant object.",
        "requirements": "To describe the object being acted upon. In addition to queries on the subject of the action in an auditable event, it is also important to be able to query on the object type for the action.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Coding"
          }
        ],
        "binding": {
          "strength": "extensible",
          "description": "Code for the object type involved audited.",
          "valueSetReference": {
            "reference": "http://hl7.org/fhir/ValueSet/object-type"
          }
        },
        "mapping": [
          {
            "identity": "fhirprovenance",
            "map": "Provenance.entity.type"
          },
          {
            "identity": "w3c.prov",
            "map": "Entity.type"
          },
          {
            "identity": "dicom",
            "map": "ParticipantObjectTypeCode"
          },
          {
            "identity": "rim",
            "map": "[self::Act].code or role.player.code"
          },
          {
            "identity": "w5",
            "map": "what"
          }
        ]
      },
      {
        "path": "AuditEvent.object.role",
        "short": "What role the Object played",
        "definition": "Code representing the functional application role of Participant Object being audited.",
        "comments": "See RFC 3881 for rules concerning matches between role and type.",
        "requirements": "For some detailed audit analysis it may be necessary to indicate a more granular type of participant, based on the application role it serves.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Coding"
          }
        ],
        "binding": {
          "strength": "extensible",
          "description": "Code representing the role the Object played in the event.",
          "valueSetReference": {
            "reference": "http://hl7.org/fhir/ValueSet/object-role"
          }
        },
        "mapping": [
          {
            "identity": "w3c.prov",
            "map": "Entity.role"
          },
          {
            "identity": "dicom",
            "map": "ParticipantObjectTypeCodeRole"
          },
          {
            "identity": "rim",
            "map": "role.code (not sure what this would mean for an Act)"
          },
          {
            "identity": "w5",
            "map": "context"
          }
        ]
      },
      {
        "path": "AuditEvent.object.lifecycle",
        "short": "Life-cycle stage for the object",
        "definition": "Identifier for the data life-cycle stage for the participant object.",
        "comments": "This can be used to provide an audit trail for data, over time, as it passes through the system.",
        "requirements": "Institutional policies for privacy and security may optionally fall under different accountability rules based on data life cycle. This provides a differentiating value for those cases.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Coding"
          }
        ],
        "binding": {
          "strength": "extensible",
          "description": "Identifier for the data life-cycle stage for the object.",
          "valueSetReference": {
            "reference": "http://hl7.org/fhir/ValueSet/object-lifecycle"
          }
        },
        "mapping": [
          {
            "identity": "fhirprovenance",
            "map": "Provenance.entity.role"
          },
          {
            "identity": "w3c.prov",
            "map": "Entity.role"
          },
          {
            "identity": "dicom",
            "map": "ParticipantObjectDataLifeCycle"
          },
          {
            "identity": "rim",
            "map": "target of ObservationEvent[code=\"lifecycle\"].value"
          },
          {
            "identity": "w5",
            "map": "context"
          }
        ]
      },
      {
        "path": "AuditEvent.object.securityLabel",
        "short": "Security labels applied to the object",
        "definition": "Denotes security labels for the identified object.",
        "requirements": "This field identifies the security labels for a specific instance of an object, such as a patient, to detect/track privacy and security issues.",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Coding"
          }
        ],
        "binding": {
          "strength": "extensible",
          "description": "Security Labels from the Healthcare Privacy and Security Classification System.",
          "valueSetReference": {
            "reference": "http://hl7.org/fhir/ValueSet/security-labels"
          }
        },
        "mapping": [
          {
            "identity": "dicom",
            "map": "ParticipantObjectSensitivity"
          },
          {
            "identity": "rim",
            "map": ".confidentialityCode"
          },
          {
            "identity": "w5",
            "map": "context"
          }
        ]
      },
      {
        "path": "AuditEvent.object.name",
        "short": "Instance-specific descriptor for Object",
        "definition": "An instance-specific descriptor of the Participant Object ID audited, such as a person's name.",
        "comments": "This field may be used in a query/report to identify audit events for a specific person.  For example, where multiple synonymous Participant Object IDs (patient number, medical record number, encounter number, etc.) have been used.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ],
        "condition": [
          "sev-1"
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "w3c.prov",
            "map": "Entity.Label"
          },
          {
            "identity": "dicom",
            "map": "ParticipantObjectName"
          },
          {
            "identity": "rim",
            "map": ".title"
          },
          {
            "identity": "w5",
            "map": "context"
          }
        ]
      },
      {
        "path": "AuditEvent.object.description",
        "short": "Descriptive text",
        "definition": "Text that describes the object in more detail.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ],
        "mapping": [
          {
            "identity": "dicom",
            "map": "ParticipantObjectDescription"
          },
          {
            "identity": "rim",
            "map": ".text"
          },
          {
            "identity": "w5",
            "map": "context"
          }
        ]
      },
      {
        "path": "AuditEvent.object.query",
        "short": "Actual query for object",
        "definition": "The actual query for a query-type participant object.",
        "requirements": "For query events it may be necessary to capture the actual query input to the query process in order to identify the specific event. Because of differences among query implementations and data encoding for them, this is a base 64 encoded data blob. It may be subsequently decoded or interpreted by downstream audit analysis processing.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "base64Binary"
          }
        ],
        "condition": [
          "sev-1"
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "dicom",
            "map": "ParticipantObjectQuery"
          },
          {
            "identity": "rim",
            "map": "No mapping"
          },
          {
            "identity": "w5",
            "map": "context"
          }
        ]
      },
      {
        "path": "AuditEvent.object.detail",
        "short": "Additional Information about the Object",
        "definition": "Additional Information about the Object.",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "BackboneElement"
          }
        ],
        "mapping": [
          {
            "identity": "dicom",
            "map": "ParticipantObjectDetail"
          },
          {
            "identity": "rim",
            "map": ".inboundRelationship[typeCode=SUBJ].target[classCode=OBS, moodCode=EVN]"
          },
          {
            "identity": "w5",
            "map": "context"
          }
        ]
      },
      {
        "path": "AuditEvent.object.detail.type",
        "short": "Name of the property",
        "definition": "Name of the property.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ],
        "mapping": [
          {
            "identity": "dicom",
            "map": "ParticipantObjectDetail.type"
          },
          {
            "identity": "rim",
            "map": ".code"
          },
          {
            "identity": "w5",
            "map": "context"
          }
        ]
      },
      {
        "path": "AuditEvent.object.detail.value",
        "short": "Property value",
        "definition": "Property value.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "base64Binary"
          }
        ],
        "mapping": [
          {
            "identity": "dicom",
            "map": "ParticipantObjectDetail.value"
          },
          {
            "identity": "rim",
            "map": ".value"
          },
          {
            "identity": "w5",
            "map": "context"
          }
        ]
      }
    ]
  }
}

Usage note: every effort has been made to ensure that the examples are correct and useful, but they are not a normative part of the specification.