### ----------------------------------------------------
### -- FHIR
### -- Licenses: Artistic-2.0
### -- Authors: Hugh Simpson
### -- File: t/resources/structureDefinition/AuditEvent.json
### ----------------------------------------------------
### -- Chunk 11 of 12
 "rim",
        "map" : ".code (type, subtype and action are pre-coordinated or sent as translations)"
      },
      {
        "identity" : "dicom",
        "map" : "EventTypeCode"
      }]
    },
    {
      "id" : "AuditEvent.action",
      "path" : "AuditEvent.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 AuditEvent.entity by the AuditEvent.agent.",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "code"
      }],
      "isSummary" : true,
      "binding" : {
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString" : "AuditEventAction"
        }],
        "strength" : "required",
        "description" : "Indicator for type of action performed during the event that generated the event.",
        "valueSet" : "http://hl7.org/fhir/ValueSet/audit-event-action|4.0.0"
      },
      "mapping" : [{
        "identity" : "w5",
        "map" : "FiveWs.what[x]"
      },
      {
        "identity" : "rim",
        "map" : ".code (type, subtype and action are pre-coordinated or sent as translations)"
      },
      {
        "identity" : "dicom",
        "map" : "EventActionCode"
      }]
    },
    {
      "id" : "AuditEvent.period",
      "path" : "AuditEvent.period",
      "short" : "When the activity occurred",
      "definition" : "The period during which the activity occurred.",
      "comment" : "The period can be a little arbitrary; where possible, the time should correspond to human assessment of the activity time.",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "Period"
      }],
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Event.occurred[x]"
      },
      {
        "identity" : "w5",
        "map" : "FiveWs.done[x]"
      },
      {
        "identity" : "rim",
        "map" : "./effectiveTime[type=IVL_TS]"
      },
      {
        "identity" : "dicom",
        "map" : "EventDateTime"
      },
      {
        "identity" : "w3c.prov",
        "map" : "Activity.startTime & Activity.endTime"
      },
      {
        "identity" : "fhirprovenance",
        "map" : "Provenance.occurred[x]"
      }]
    },
    {
      "id" : "AuditEvent.recorded",
      "path" : "AuditEvent.recorded",
      "short" : "Time when the event was recorded",
      "definition" : "The time when the event was recorded.",
      "comment" : "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" : "w5",
        "map" : "FiveWs.recorded"
      },
      {
        "identity" : "rim",
        "map" : ".effectiveTime"
      },
      {
        "identity" : "w3c.prov",
        "map" : "Activity.when"
      },
      {
        "identity" : "fhirprovenance",
        "map" : "Provenance.recorded"
      }]
    },
    {
      "id" : "AuditEvent.outcome",
      "path" : "AuditEvent.outcome",
      "short" : "Whether the event succeeded or failed",
      "definition" : "Indicates whether the event succeeded or failed.",
      "comment" : "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" : {
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString" : "AuditEventOutcome"
        }],
        "strength" : "required",
        "description" : "Indicates whether the event succeeded or failed.",
        "valueSet" : "http://hl7.org/fhir/ValueSet/audit-event-outcome|4.0.0"
      },
      "mapping" : [{
        "identity" : "w5",
        "map" : "FiveWs.what[x]"
      },
      {
        "identity" : "rim",
        "map" : ".actionNegationInd"
      },
      {
        "identity" : "dicom",
        "map" : "EventOutcomeIndicator"
      }]
    },
    {
      "id" : "AuditEvent.outcomeDesc",
      "path" : "AuditEvent.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" : "w5",
        "map" : "FiveWs.what[x]"
      },
      {
        "identity" : "rim",
        "map" : ".outboundRelationship[typeCode=OUT].target.text"
      },
      {
        "identity" : "dicom",
        "map" : "EventOutcomeDescription"
      }]
    },
    {
      "id" : "AuditEvent.purposeOfEvent",
      "path" : "AuditEvent.purposeOfEvent",
      "short" : "The purposeOfUse of the event",
      "definition" : "The purposeOfUse (reason) that was used during the event being recorded.",
      "comment" : "Use AuditEvent.agent.purposeOfUse when you know that it is specific to the agent, otherwise use AuditEvent.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" : "CodeableConcept"
      }],
      "isSummary" : true,
      "binding" : {
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString" : "AuditPurposeOfUse"
        }],
        "strength" : "extensible",
        "description" : "The reason the activity took place.",
        "valueSet" : "http://terminology.hl7.org/ValueSet/v3-PurposeOfUse"
      },
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Event.reasonCode"
      },
      {
        "identity" : "w5",
        "map" : "FiveWs.why[x]"
      },
      {
        "identity" : "rim",
        "map" : "* .reasonCode [ControlActReason when Act.class = CACT Control Act]\n*.outboundRelationship[typeCode=RSON].target"
      },
      {
        "identity" : "dicom",
        "map" : "EventPurposeOfUse"
      },
      {
        "identity" : "w3c.prov",
        "map" : "Activity.Activity"
      },
      {
        "identity" : "fhirprovenance",
        "map" : "Provenance.reason, Provenance.activity"
      }]
    },
    {
      "id" : "AuditEvent.agent",
      "path" : "AuditEvent.agent",
      "short" : "Actor involved in the event",
      "definition" : "An actor taking an active role in the event or activity that is logged.",
      "comment" : "Several agents may be associated (i.e. have some responsibility for an activity) with an event or activity.\n\nFor example, an activity may be initiated by one user for other users or involve more than one user. However, only one user may be the initiator/requestor for the activity.",
      "requirements" : "An agent can be a person, an organization, software, device, or other actors that may be ascribed responsibility.",
      "alias" : ["ActiveParticipant"],
      "min" : 1,
      "max" : "*",
      "type" : [{
        "code" : "BackboneElement"
      }],
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Event.performer"
      },
      {
        "identity" : "w5",
        "map" : "FiveWs.who"
      },
      {
        "identity" : "rim",
        "map" : ".participation"
      },
      {
        "identity" : "dicom",
        "map" : "ActiveParticipant"
      },
      {
        "identity" : "w3c.prov",
        "map" : "Agent"
      },
      {
        "identity" : "fhirprovenance",
        "map" : "Provenance.agent"
      }]
    },
    {
      "id" : "AuditEvent.agent.type",
      "path" : "AuditEvent.agent.type",
      "short" : "How agent participated",
      "definition" : "Specification of the participation type the user plays when performing the event.",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "CodeableConcept"
      }],
      "binding" : {
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString" : "AuditAgentType"
        }],
        "strength" : "extensible",
        "description" : "The Participation type of the agent to the event.",
        "valueSet" : "http://hl7.org/fhir/ValueSet/participation-role-type"
      },
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Event.performer.function"
      },
      {
        "identity" : "w5",
        "map" : "FiveWs.who"
      },
      {
        "identity" : "rim",
        "map" : ".typeCode and/or .functionCode"
      },
      {
        "identity" : "dicom",
        "map" : "RoleIdCode"
      },
      {
        "identity" : "w3c.prov",
        "map" : "Agent.Attribution"
      },
      {
        "identity" : "fhirprovenance",
        "map" : "Provenance.agent.type"
      }]
    },
    {
      "id" : "AuditEvent.agent.role",
      "path" : "AuditEvent.agent.role",
      "short" : "Agent role in the event",
      "definition" : "The security role that the user was acting under, that come from local codes defined by the access control security system (e.g. RBAC, ABAC) used in the local context.",
      "comment" : "Should be roles relevant to the event. Should  not be an exhaustive list of roles.",
      "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" : {
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString" : "AuditAgentRole"
        }],
        "strength" : "example",
        "description" : "What security role enabled the agent to participate in the event.",
        "valueSet" : "http://hl7.org/fhir/ValueSet/security-role-type"
      },
      "mapping" : [{
        "identity" : "w5",
        "map" : "FiveWs.who"
      },
      {
        "identity" : "rim",
        "map" : ".role"
      },
      {
        "identity" : "dicom",
        "map" : "RoleIdCode"
      },
      {
        "identity" : "w3c.prov",
        "map" : "Agent.Attribution"
      },
      {
        "identity" : "fhirprovenance",
        "map" : "Provenance.agent.role"
      }]
    },
    {
      "id" : "AuditEvent.agent.who",
      "path" : "AuditEvent.agent.who",
      "short" : "Identifier of who",
      "definition" : "Reference to who this agent is that was involved in the event.",
      "comment" : "Where a User ID is available it will go into who.identifier.",
      "requirements" : "This field ties an audit event to a specific resource or identifier.",
      "alias" : ["userId"],
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/PractitionerRole",
        "http://hl7.org/fhir/StructureDefinition/Practitioner",
        "http://hl7.org/fhir/StructureDefinition/Organization",
        "http://hl7.org/fhir/StructureDefinition/Device",
        "http://hl7.org/fhir/StructureDefinition/Patient",
        "http://hl7.org/fhir/StructureDefinition/RelatedPerson"]
      }],
      "isSummary" : true,
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Event.performer.actor"
      },
      {
        "identity" : "w5",
        "map" : "FiveWs.who"
      },
      {
        "identity" : "rim",
        "map" : ".id"
      },
      {
        "identity" : "dicom",
        "map" : "UserId"
      },
      {
        "identity" : "w3c.prov",
        "map" : "Agent.Identity"
      },
      {
        "identity" : "fhirprovenance",
        "map" : "Provenance.agent.who"
      }]
    },
    {
      "id" : "AuditEvent.agent.altId",
      "path" : "AuditEvent.agent.altId",
      "short" : "Alternative User identity",
      "definition" : "Alternative agent 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" : "w5",
        "map" : "FiveWs.who"
      },
      {
        "identity" : "rim",
        "map" : ".id (distinguish id type by root)"
      },
      {
        "identity" : "dicom",
        "map" : "AlternativeUserId"
      },
      {
        "identity" : "w3c.prov",
        "map" : "Agent.Identity"
      }]
    },
    {
      "id" : "AuditEvent.agent.name",
      "path" : "AuditEvent.agent.name",
      "short" : "Human friendly name for the agent",
      "definition" : "Human-meaningful name for the agent.",
      "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" : "w5",
        "map" : "FiveWs.who"
      },
      {
        "identity" : "rim",
        "map" : ".name"
      },
      {
        "identity" : "dicom",
        "map" : "UserName"
      },
      {
        "identity" : "w3c.prov",
        "map" : "Agent.Identity"
      }]
    },
    {
      "id" : "AuditEvent.agent.requestor",
      "path" : "AuditEvent.agent.requestor",
      "short" : "Whether user is initiator",
      "definition" : "Indicator that the user is or is not the requestor, or initiator, for the event being audited.",
      "comment" : "There can only be one initiator. If the initiator is not clear, then do not choose any one agent 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"
      }],
      "isSummary" : true,
      "mapping" : [{
        "identity" : "w5",
        "map" : "FiveWs.who"
      },
      {
        "identity" : "rim",
        "map" : "If participation.typeCode was author, then true"
      },
      {
        "identity" : "dicom",
        "map" : "UserIsRequestor"
      }]
    },
    {
      "id" : "AuditEvent.agent.location",
      "path" : "AuditEvent.agent.location",
      "short" : "Where",
      "definition" : "Where the event occurred.",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Location"]
      }],
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Event.location"
      },
      {
        "identity" : "w5",
        "map" : "FiveWs.where[x]"
      },
      {
        "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 might or might not be constant."
      },
      {
        "identity" : "w3c.prov",
        "map" : "Activity.location"
      },
      {
        "identity" : "fhirprovenance",
        "map" : "Provenance.location"
      }]
    },
    {
      "id" : "AuditEvent.agent.policy",
      "path" : "AuditEvent.agent.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.",
      "comment" : "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" : "w5",
        "map" : "FiveWs.why[x]"
      },
      {
        "identity" : "rim",
        "map" : "ActPolicyType"
      },
      {
        "identity" : "dicom",
        "map" : "ParticipantRoleIDCode"
      },
      {
        "identity" : "fhirprovenance",
        "map" : "Provenance.policy"
      }]
    },
    {
      "id" : "AuditEvent.agent.media",
      "path" : "AuditEvent.agent.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" : {
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString" : "DICOMMediaType"
        }],
        "strength" : "extensible",
        "description" : "Used when the event is about exporting/importing onto media.",
        "valueSet" : "http://hl7.org/fhir/ValueSet/dicm-405-mediatype"
      },
      "mapping" : [{
        "identity" : "w5",
        "map" : "FiveWs.where[x]"
      },
      {
        "identity" : "rim",
        "map" : ".player.description.mediaType"
      },
      {
        "identity" : "dicom",
        "map" : "MediaType"
      }]
    },
    {
      "id" : "AuditEvent.agent.network",
      "path" : "AuditEvent.agent.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" : "w5",
        "map" : "FiveWs.where[x]"
      },
      {
        "identity" : "rim",
        "map" : ".player.description.reference"
      }]
    },
    {
      "id" : "AuditEvent.agent.network.address",
      "path" : "AuditEvent.agent.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.",
      "comment" : "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" : "w5",
        "map" : "FiveWs.where[x]"
      },
      {
        "identity" : "rim",
        "map" : "pre-coordinated into URL"
      },
      {
        "identity" : "dicom",
        "map" : "NetworkAccessPointID"
      },
      {
        "identity" : "w3c.prov",
        "map" : "Agent.Location"
      }]
    },
    {
      "id" : "AuditEvent.agent.network.type",
      "path" : "AuditEvent.agent.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" : {
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString" : "AuditEventAgentNetworkType"
        }],
        "strength" : "required",
        "description" : "The type of network access point of this agent in the audit event.",
        "valueSet" : "http://hl7.org/fhir/ValueSet/network-type|4.0.0"
      },
      "mapping" : [{
        "identity" : "w5",
        "map" : "FiveWs.where[x]"
      },
      {
        "identity" : "rim",
        "map" : "pre-coordinated into URL"
      },
      {
        "identity" : "dicom",
        "map" : "NetworkAccessPointTypeCode"
      }]
    },
    {
      "id" : "AuditEvent.agent.purposeOfUse",
      "path" : "AuditEvent.agent.purposeOfUse",
      "short" : "Reason given for this user",
      "definition" : "The reason (purpose of use), specific to this agent, that was used during the event being recorded.",
      "comment" : "Use AuditEvent.agent.purposeOfUse when you know that is specific to the agent, otherwise use AuditEvent.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" : "CodeableConcept"
      }],
      "binding" : {
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString" : "AuditPurposeOfUse"
        }],
        "strength" : "extensible",
        "description" : "The reason the activity took place.",
        "valueSet" : "http://terminology.hl7.org/ValueSet/v3-PurposeOfUse"
      },
      "mapping" : [{
        "identity" : "w5",
        "map" : "FiveWs.why[x]"
      },
      {
        "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" : "w3c.prov",
        "map" : "Agent.Activity"
      }]
    },
    {
      "id" : "AuditEvent.source",
      "path" : "AuditEvent.source",
      "short" : "Audit Event Reporter",
      "definition" : "The system that is reporting the event.",
      "comment" : "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" : "w5",
        "map" : "FiveWs.witness"
      },
      {
        "identity" : "rim",
        "map" : ".participation[typeCode=INF].role[classCode=ASSIGN].player[classCode=DEV, determinerCode=INSTANCE]"
      },
      {
        "identity" : "dicom",
        "map" : "AuditSourceIdentification"
      }]
    },
    {
      "id" : "AuditEvent.source.site",
      "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" : "w5",
        "map" : "FiveWs.witness"
      },
      {
        "identity" : "rim",
        "map" : ".scopedRole[classCode=LOCE].player.desc"
      },
      {
        "identity" : "dicom",
        "map" : "AuditEnterpriseSiteId"
      }]
    },
    {
      "id" : "AuditEvent.source.observer",
      "path" : "AuditEvent.source.observer",
      "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.",
      "alias" : ["SourceId"],
      "min" : 1,
      "max" : "1",
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/PractitionerRole",
        "http://hl7.org/fhir/StructureDefinition/Practitioner",
        "http://hl7.org/fhir/StructureDefinition/Organization",
        "http://hl7.org/fhir/StructureDefinition/Device",
        "http://hl7.org/fhir/StructureDefinition/Patient",
        "http://hl7.org/fhir/StructureDefinition/RelatedPerson"]
      }],
      "isSummary" : true,
      "mapping" : [{
        "identity" : "w5",
        "map" : "FiveWs.witness"
      },
      {
        "identity" : "rim",
        "map" : ".id"
      },
      {
        "identity" : "dicom",
        "map" : "AuditSourceId"
      }]
    },
    {
      "id" : "AuditEvent.source.type",
      "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" : {
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString" : "AuditEventSourceType"
        }],
        "strength" : "extensible",
        "description" : "Code specifying the type of system that detected and recorded the event.",
        "valueSet" : "http://hl7.org/fhir/ValueSet/audit-source-type"
      },
      "mapping" : [{
        "identity" : "w5",
        "map" : "FiveWs.witness"
      },
      {
        "identity" : "rim",
        "map" : ".code"
      },
      {
        "identity" : "dicom",
        "map" : "AuditSourceTypeCode"
      }]
    },
    {
      "id" : "AuditEvent.entity",
      "path" : "AuditEvent.entity",
      "short" : "Data or objects used",
      "definition" : "Specific instances of data or objects that have been accessed.",
      "comment" : "Required unless the values for event identification, agent identification, and audit source identification are sufficient to document the entire auditable event. Because events may have more than one entity, this group can be a repeating set of values.",
      "requirements" : "The event may have other entities involved.",
      "alias" : ["ParticipantObject"],
      "min" : 0,
      "max" : "*",
      "type" : [{
        "code" : "BackboneElement"
      }],
      "constraint" : [{
        "key" : "sev-1",
        "severity" : "error",
        "human" : "Either a name or a query (NOT both)",
        "expression" : "name.empty() or query.empty()",
        "xpath" : "not(exists(f:name)) or not(exists(f:query))"
      }],
      "mapping" : [{
        "identity" : "w5",
        "map" : "FiveWs.what[x]"
      },
      {
        "identity" : "rim",
        "map" : ".outboundRelationship[typeCode=SUBJ].target  or  .participation[typeCode=SBJ].role"
      },
      {
        "identity" : "dicom",
        "map" : "ParticipantObjectIdentification"
      },
      {
        "identity" : "w3c.prov",
        "map" : "Entity"
      },
      {
        "identity" : "fhirprovenance",
        "map" : "Provenance.target, Provenance.entity"
      }]
    },
    {
      "id" : "AuditEvent.entity.what",
      "path" : "AuditEvent.entity.what",
      "short" : "Specific instance of resource",
      "definition" : "Identifies a specific instance of the entity. The reference should be version specific.",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Resource"]
      }],
      "isSummary" : true,
      "mapping" : [{
        "identity" : "w5",
        "map" : "FiveWs.what[x]"
      },
      {
        "identity" : "rim",
        "map" : ".id"
      },
      {
        "identity" : "dicom",
        "map" : "ParticipantObjectID and ParticipantObjectIDTypeCode"
      },
      {
        "identity" : "fhirprovenance",
        "map" : "Provenance.target, Provenance.entity.what"
      }]
    },
    {
      "id" : "AuditEvent.entity.type",
      "path" : "AuditEvent.entity.type",
      "short" : "Type of entity involved",
      "definition" : "The type of the object that was involved in this audit event.",
      "comment" : "This value is distinct from the user's role or any user relationship to the entity.",
      "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" : {
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString" : "AuditEventEntityType"
        }],
        "strength" : "extensible",
        "description" : "Code for the entity type involved in the audit event.",
        "valueSet" : "http://hl7.org/fhir/ValueSet/audit-entity-type"
      },
      "mapping" : [{
        "identity" : "w5",
        "map" : "FiveWs.what[x]"
      },
      {
        "identity" : "rim",
        "map" : "[self::Act].code or role.player.code"
      },
      {
        "identity" : "dicom",
       