### ----------------------------------------------------
### -- FHIR
### -- Licenses: Artistic-2.0
### -- Authors: Hugh Simpson
### -- File: t/resources/structureDefinition/Provenance.json
### ----------------------------------------------------
### -- Chunk 5 of 6
requirements" : "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](extensibility.html#modifierExtension).",
      "alias" : ["extensions",
      "user content"],
      "min" : 0,
      "max" : "*",
      "base" : {
        "path" : "DomainResource.modifierExtension",
        "min" : 0,
        "max" : "*"
      },
      "type" : [{
        "code" : "Extension"
      }],
      "isModifier" : true,
      "isModifierReason" : "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
      "isSummary" : false,
      "mapping" : [{
        "identity" : "rim",
        "map" : "N/A"
      }]
    },
    {
      "id" : "Provenance.target",
      "path" : "Provenance.target",
      "short" : "Target Reference(s) (usually version specific)",
      "definition" : "The Reference(s) that were generated or updated by  the activity described in this resource. A provenance can point to more than one target if multiple resources were created/updated by the same activity.",
      "comment" : "Target references are usually version specific, but might not be, if a version has not been assigned or if the provenance information is part of the set of resources being maintained (i.e. a document). When using the RESTful API, the identity of the resource might not be known (especially not the version specific one); the client may either submit the resource first, and then the provenance, or it may submit both using a single transaction. See the notes on transaction for further discussion.",
      "min" : 1,
      "max" : "*",
      "base" : {
        "path" : "Provenance.target",
        "min" : 1,
        "max" : "*"
      },
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Resource"]
      }],
      "isModifier" : false,
      "isSummary" : true,
      "mapping" : [{
        "identity" : "w5",
        "map" : "FiveWs.what[x]"
      },
      {
        "identity" : "rim",
        "map" : "./outboundRelationship[isNormalActRelationship() and typeCode=SUBJ]/target  OR  ./participation[isNormalParticipation() and typeCode=SBJ]/role  OR  ./participation[isNormalParticipation() and typeCode=SBJ]/role[isNormalRole()]/player"
      },
      {
        "identity" : "fhirauditevent",
        "map" : "AuditEvent.entity.reference"
      },
      {
        "identity" : "w3c.prov",
        "map" : "Entity Created/Updated"
      }]
    },
    {
      "id" : "Provenance.occurred[x]",
      "path" : "Provenance.occurred[x]",
      "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",
      "base" : {
        "path" : "Provenance.occurred[x]",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "code" : "Period"
      },
      {
        "code" : "dateTime"
      }],
      "isModifier" : false,
      "isSummary" : false,
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Event.occurred[x]"
      },
      {
        "identity" : "w5",
        "map" : "FiveWs.done[x]"
      },
      {
        "identity" : "rim",
        "map" : "./effectiveTime[type=IVL_TS]"
      },
      {
        "identity" : "w3c.prov",
        "map" : "Activity.startTime & Activity.endTime"
      }]
    },
    {
      "id" : "Provenance.recorded",
      "path" : "Provenance.recorded",
      "short" : "When the activity was recorded / updated",
      "definition" : "The instant of time at which the activity was recorded.",
      "comment" : "This can be a little different from the time stamp on the resource if there is a delay between recording the event and updating the provenance and target resource.",
      "min" : 1,
      "max" : "1",
      "base" : {
        "path" : "Provenance.recorded",
        "min" : 1,
        "max" : "1"
      },
      "type" : [{
        "code" : "instant"
      }],
      "isModifier" : false,
      "isSummary" : true,
      "mapping" : [{
        "identity" : "w5",
        "map" : "FiveWs.recorded"
      },
      {
        "identity" : "rim",
        "map" : "unique(./participation[isNormalParticipation() and typeCode=AUT]/time[type=TS])"
      },
      {
        "identity" : "fhirauditevent",
        "map" : "AuditEvent.recorded"
      },
      {
        "identity" : "w3c.prov",
        "map" : "Activity.when"
      }]
    },
    {
      "id" : "Provenance.policy",
      "path" : "Provenance.policy",
      "short" : "Policy or plan the activity was defined by",
      "definition" : "Policy or plan the activity was defined by. Typically, a single activity may have multiple applicable policy documents, such as patient consent, guarantor funding, etc.",
      "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.",
      "min" : 0,
      "max" : "*",
      "base" : {
        "path" : "Provenance.policy",
        "min" : 0,
        "max" : "*"
      },
      "type" : [{
        "code" : "uri"
      }],
      "isModifier" : false,
      "isSummary" : false,
      "mapping" : [{
        "identity" : "rim",
        "map" : "./inboundRelationship[isNormalActRelationship() and typeCode=\"SUBJ\"]/source[isNormalAct and subsumes(POLICY, classCode) and moodCode=EVN]/text[typeCode='ED'/tel"
      },
      {
        "identity" : "fhirauditevent",
        "map" : "AuditEvent.agent.policy"
      }]
    },
    {
      "id" : "Provenance.location",
      "path" : "Provenance.location",
      "short" : "Where the activity occurred, if relevant",
      "definition" : "Where the activity occurred, if relevant.",
      "min" : 0,
      "max" : "1",
      "base" : {
        "path" : "Provenance.location",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Location"]
      }],
      "isModifier" : false,
      "isSummary" : false,
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Event.location"
      },
      {
        "identity" : "w5",
        "map" : "FiveWs.where[x]"
      },
      {
        "identity" : "rim",
        "map" : "unique(./participation[isNormalParticipation() and typeCode=LOC]/role[isNormalRole() and subsumes(SDLOC, classCode)]/player[isNormalEntity and classCode=\"LOC\" and determinerCode=\"INST\"]"
      },
      {
        "identity" : "fhirauditevent",
        "map" : "AuditEvent.agent.location"
      },
      {
        "identity" : "w3c.prov",
        "map" : "Activity.location"
      }]
    },
    {
      "id" : "Provenance.reason",
      "path" : "Provenance.reason",
      "short" : "Reason the activity is occurring",
      "definition" : "The reason that the activity was taking place.",
      "min" : 0,
      "max" : "*",
      "base" : {
        "path" : "Provenance.reason",
        "min" : 0,
        "max" : "*"
      },
      "type" : [{
        "code" : "CodeableConcept"
      }],
      "isModifier" : false,
      "isSummary" : false,
      "binding" : {
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString" : "ProvenanceReason"
        }],
        "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" : "unique(./reasonCode)"
      },
      {
        "identity" : "fhirauditevent",
        "map" : "AuditEvent.purposeOfEvent"
      },
      {
        "identity" : "w3c.prov",
        "map" : "Activity.Activity"
      }]
    },
    {
      "id" : "Provenance.activity",
      "path" : "Provenance.activity",
      "short" : "Activity that occurred",
      "definition" : "An activity is something that occurs over a period of time and acts upon or with entities; it may include consuming, processing, transforming, modifying, relocating, using, or generating entities.",
      "min" : 0,
      "max" : "1",
      "base" : {
        "path" : "Provenance.activity",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "code" : "CodeableConcept"
      }],
      "isModifier" : false,
      "isSummary" : false,
      "binding" : {
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString" : "ProvenanceActivity"
        }],
        "strength" : "extensible",
        "description" : "The activity that took place.",
        "valueSet" : "http://hl7.org/fhir/ValueSet/provenance-activity-type"
      },
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Event.code"
      },
      {
        "identity" : "w5",
        "map" : "FiveWs.why[x]"
      },
      {
        "identity" : "rim",
        "map" : "Act.code"
      },
      {
        "identity" : "w3c.prov",
        "map" : "Activity.Activity"
      }]
    },
    {
      "id" : "Provenance.agent",
      "path" : "Provenance.agent",
      "short" : "Actor involved",
      "definition" : "An actor taking a role in an activity  for which it can be assigned some degree of responsibility for the activity taking place.",
      "comment" : "Several agents may be associated (i.e. has some responsibility for an activity) with an activity and vice-versa.",
      "requirements" : "An agent can be a person, an organization, software, device, or other entities that may be ascribed responsibility.",
      "min" : 1,
      "max" : "*",
      "base" : {
        "path" : "Provenance.agent",
        "min" : 1,
        "max" : "*"
      },
      "type" : [{
        "code" : "BackboneElement"
      }],
      "constraint" : [{
        "key" : "ele-1",
        "severity" : "error",
        "human" : "All FHIR elements must have a @value or children",
        "expression" : "hasValue() or (children().count() > id.count())",
        "xpath" : "@value|f:*|h:div",
        "source" : "Element"
      }],
      "isModifier" : false,
      "isSummary" : false,
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Event.performer"
      },
      {
        "identity" : "w5",
        "map" : "FiveWs.who"
      },
      {
        "identity" : "rim",
        "map" : "./participation[isNormalParticipation()]  OR  ./outboundRelationship[isNormalActRelationship() and typeCode='DRIV']"
      },
      {
        "identity" : "fhirauditevent",
        "map" : "AuditEvent.agent"
      },
      {
        "identity" : "w3c.prov",
        "map" : "Agent"
      }]
    },
    {
      "id" : "Provenance.agent.id",
      "path" : "Provenance.agent.id",
      "representation" : ["xmlAttr"],
      "short" : "Unique id for inter-element referencing",
      "definition" : "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
      "min" : 0,
      "max" : "1",
      "base" : {
        "path" : "Element.id",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "code" : "string"
      }],
      "isModifier" : false,
      "isSummary" : false,
      "mapping" : [{
        "identity" : "rim",
        "map" : "n/a"
      }]
    },
    {
      "id" : "Provenance.agent.extension",
      "path" : "Provenance.agent.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. 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 can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
      "comment" : "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" : "*",
      "base" : {
        "path" : "Element.extension",
        "min" : 0,
        "max" : "*"
      },
      "type" : [{
        "code" : "Extension"
      }],
      "isModifier" : false,
      "isSummary" : false,
      "mapping" : [{
        "identity" : "rim",
        "map" : "n/a"
      }]
    },
    {
      "id" : "Provenance.agent.modifierExtension",
      "path" : "Provenance.agent.modifierExtension",
      "short" : "Extensions that cannot be ignored even if unrecognized",
      "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 in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. 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 can 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.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
      "comment" : "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.",
      "requirements" : "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](extensibility.html#modifierExtension).",
      "alias" : ["extensions",
      "user content",
      "modifiers"],
      "min" : 0,
      "max" : "*",
      "base" : {
        "path" : "BackboneElement.modifierExtension",
        "min" : 0,
        "max" : "*"
      },
      "type" : [{
        "code" : "Extension"
      }],
      "isModifier" : true,
      "isModifierReason" : "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
      "isSummary" : true,
      "mapping" : [{
        "identity" : "rim",
        "map" : "N/A"
      }]
    },
    {
      "id" : "Provenance.agent.type",
      "path" : "Provenance.agent.type",
      "short" : "How the agent participated",
      "definition" : "The participation the agent had with respect to the activity.",
      "comment" : "For example: author, performer, enterer, attester, etc.",
      "min" : 0,
      "max" : "1",
      "base" : {
        "path" : "Provenance.agent.type",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "code" : "CodeableConcept"
      }],
      "isModifier" : false,
      "isSummary" : true,
      "binding" : {
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString" : "ProvenanceAgentType"
        }],
        "strength" : "extensible",
        "description" : "The type of participation that a provenance agent played with respect to the activity.",
        "valueSet" : "http://hl7.org/fhir/ValueSet/provenance-agent-type"
      },
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Event.performer.function"
      },
      {
        "identity" : "rim",
        "map" : ".role"
      },
      {
        "identity" : "fhirauditevent",
        "map" : "AuditEvent.agent.type"
      },
      {
        "identity" : "w3c.prov",
        "map" : "Agent.Attribution"
      }]
    },
    {
      "id" : "Provenance.agent.role",
      "path" : "Provenance.agent.role",
      "short" : "What the agents role was",
      "definition" : "The function of the agent with respect to the activity. The security role enabling the agent with respect to the activity.",
      "comment" : "For example: doctor, nurse, clerk, etc.",
      "min" : 0,
      "max" : "*",
      "base" : {
        "path" : "Provenance.agent.role",
        "min" : 0,
        "max" : "*"
      },
      "type" : [{
        "code" : "CodeableConcept"
      }],
      "isModifier" : false,
      "isSummary" : false,
      "binding" : {
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString" : "ProvenanceAgentRole"
        }],
        "strength" : "example",
        "description" : "The role that a provenance agent played with respect to the activity.",
        "valueSet" : "http://hl7.org/fhir/ValueSet/security-role-type"
      },
      "mapping" : [{
        "identity" : "rim",
        "map" : ".typecode"
      },
      {
        "identity" : "fhirauditevent",
        "map" : "AuditEvent.agent.role"
      }]
    },
    {
      "id" : "Provenance.agent.who",
      "path" : "Provenance.agent.who",
      "short" : "Who participated",
      "definition" : "The individual, device or organization that participated in the event.",
      "comment" : "whoIdentity should be used when the agent is not a Resource type.",
      "min" : 1,
      "max" : "1",
      "base" : {
        "path" : "Provenance.agent.who",
        "min" : 1,
        "max" : "1"
      },
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Practitioner",
        "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
        "http://hl7.org/fhir/StructureDefinition/RelatedPerson",
        "http://hl7.org/fhir/StructureDefinition/Patient",
        "http://hl7.org/fhir/StructureDefinition/Device",
        "http://hl7.org/fhir/StructureDefinition/Organization"]
      }],
      "isModifier" : false,
      "isSummary" : true,
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Event.performer.actor"
      },
      {
        "identity" : "w5",
        "map" : "FiveWs.actor"
      },
      {
        "identity" : "rim",
        "map" : ".id"
      }]
    },
    {
      "id" : "Provenance.agent.onBehalfOf",
      "path" : "Provenance.agent.onBehalfOf",
      "short" : "Who the agent is representing",
      "definition" : "The individual, device, or organization for whom the change was made.",
      "comment" : "onBehalfOfIdentity should be used when the agent is not a Resource type.",
      "min" : 0,
      "max" : "1",
      "base" : {
        "path" : "Provenance.agent.onBehalfOf",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Practitioner",
        "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
        "http://hl7.org/fhir/StructureDefinition/RelatedPerson",
        "http://hl7.org/fhir/StructureDefinition/Patient",
        "http://hl7.org/fhir/StructureDefinition/Device",
        "http://hl7.org/fhir/StructureDefinition/Organization"]
      }],
      "isModifier" : false,
      "isSummary" : false,
      "mapping" : [{
        "identity" : "rim",
        "map" : "Person, Practitioner, Organization, Device :* .role [classCode = RoleClassMutualRelationship; role.code and * .scopes[Role](classCode=IDENT) and *.plays [Role.Code]"
      }]
    },
    {
      "id" : "Provenance.entity",
      "path" : "Provenance.entity",
      "short" : "An entity used in this activity",
      "definition" : "An entity used in this activity.",
      "min" : 0,
      "max" : "*",
      "base" : {
        "path" : "Provenance.entity",
        "min" : 0,
        "max" : "*"
      },
      "type" : [{
        "code" : "BackboneElement"
      }],
      "constraint" : [{
        "key" : "ele-1",
        "severity" : "error",
        "human" : "All FHIR elements must have a @value or children",
        "expression" : "hasValue() or (children().count() > id.count())",
        "xpath" : "@value|f:*|h:div",
        "source" : "Element"
      }],
      "isModifier" : false,
      "isSummary" : false,
      "mapping" : [{
        "identity" : "rim",
        "map" : "./subjectOf"
      },
      {
        "identity" : "fhirauditevent",
        "map" : "AuditEvent.entity"
      },
      {
        "identity" : "w3c.prov",
        "map" : "Entity"
      }]
    },
    {
      "id" : "Provenance.entity.id",
      "path" : "Provenance.entity.id",
      "representation" : ["xmlAttr"],
      "short" : "Unique id for inter-element referencing",
      "definition" : "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
      "min" : 0,
      "max" : "1",
      "base" : {
        "path" : "Element.id",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "code" : "string"
      }],
      "isModifier" : false,
      "isSummary" : false,
      "mapping" : [{
        "identity" : "rim",
        "map" : "n/a"
      }]
    },
    {
      "id" : "Provenance.entity.extension",
      "path" : "Provenance.entity.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. 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 can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
      "comment" : "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" : "*",
      "base" : {
        "path" : "Element.extension",
        "min" : 0,
        "max" : "*"
      },
      "type" : [{
        "code" : "Extension"
      }],
      "isModifier" : false,
      "isSummary" : false,
      "mapping" : [{
        "identity" : "rim",
        "map" : "n/a"
      }]
    },
    {
      "id" : "Provenance.entity.modifierExtension",
      "path" : "Provenance.entity.modifierExtension",
      "short" : "Extensions that cannot be ignored even if unrecognized",
      "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 in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. 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 can 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.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
      "comment" : "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.",
      "requirements" : "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](extensibility.html#modifierExtension).",
      "alias" : ["extensions",
      "user content",
      "modifiers"],
      "min" : 0,
      "max" : "*",
      "base" : {
        "path" : "BackboneElement.modifierExtension",
        "min" : 0,
        "max" : "*"
      },
      "type" : [{
        "code" : "Extension"
      }],
      "isModifier" : true,
      "isModifierReason" : "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
      "isSummary" : true,
      "mapping" : [{
        "identity" : "rim",
        "map" : "N/A"
      }]
    },
    {
      "id" : "Provenance.entity.role",
      "path" : "Provenance.entity.role",
      "short" : "derivation | revision | quotation | source | removal",
      "definition" : "How the entity was used during the activity.",
      "min" : 1,
      "max" : "1",
      "base" : {
        "path" : "Provenance.entity.role",
        "min" : 1,
        "max" : "1"
      },
      "type" : [{
        "code" : "code"
      }],
      "isModifier" : false,
      "isSummary" : true,
      "binding" : {
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString" : "ProvenanceEntityRole"
        }],
        "strength" : "required",
        "description" : "How an entity was used in an activity.",
        "valueSet" : "http://hl7.org/fhir/ValueSet/provenance-entity-role|4.0.0"
      },
      "mapping" : [{
        "identity" : "rim",
        "map" : "./typeCode"
      },
      {
        "identity" : "fhirauditevent",
        "map" : "AuditEvent.entity.lifecycle"
      },
      {
        "identity" : "w3c.prov",
        "map" : "Entity.role"
      }]
    },
    {
      "id" : "Provenance.entity.what",
      "path" : "Provenance.entity.what",
      "short" : "Identity of entity",
      "definition" : "Identity of the  Entity used. May be a logical or physical uri and maybe absolute or relative.",
      "comment" : "whatIdentity should be used for entities that are not a Resource type.",
      "min" : 1,
      "max" : "1",
      "base" : {
        "path" : "Provenance.entity.what",
        "min" : 1,
        "max" : "1"
      },
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Resource"]
      }],
      "isModifier" : false,
      "isSummary" : true,
      "mapping" : [{
        "identity" : "rim",
        "map" : "./text/reference"
      },
      {
        "identity" : "fhirauditevent",
        "map" : "AuditEvent.entity.reference"
      },
      {
        "identity" : "w3c.prov",
        "map" : "Entity.Identity"
      }]
    },
    {
      "id" : "Provenance.entity.agent",
      "path" : "Provenance.entity.agent",
      "short" : "Entity is attributed to this agent",
      "definition" : "The entity is attributed to an agent to express the agent's responsibility for that entity, possibly along with other agents. This description can be understood as shorthand for saying that the agent was responsible for the activity which generated the entity.",
      "comment" : "A usecase where one Provenance.entity.agent is used where the Entity that was used in the creation/updating of the Target, is not in the context of the same custodianship as the Target, and thus the meaning of Provenance.entity.agent is to say that the entity referenced is managed elsewhere and that this Agent provided access to it.  This would be similar to where the Entity being referenced is managed outside FHIR, such as through HL7 v2, v3, or XDS. This might be where the Entity being referenced is managed in another FHIR resource server. Thus it explains the Provenance of that Entity's use in the context of this Provenance activity.",
      "min" : 0,
      "max" : "*",
      "base" : {
        "path" : "Provenance.entity.agent",
        "min" : 0,
        "max" : "*"
      },
      "contentReference" : "#Provenance.agent",
      "isModifier" : false,
      "isSummary" : false,
      "mapping" : [{
        "identity" : "rim",
        "map" : "./author/role"
      }]
    },
    {
      "id" : "Provenance.signature",
      "path" : "Provenance.signature",
      "short" : "Signature on target",
      "definition" : "A digital signature on the target Reference(s). The signer should match a Provenance.agent. The purpose of the signature is indicated.",
      "min" : 0,
      "max" : "*",
      "base" : {
        "path" : "Provenance.signature",
        "min" : 0,
        "max" : "*"
      },
      "type" : [{
        "code" : "Signature"
      }],
      "isModifier" : false,
      "isSummary" : false,
      "mapping" : [{
        "identity" : "rim",
        "map" : "./signatureText"
      }]
    }]
  },
  "differential" : {
    "element" : [{
      "id" : "Provenance",
      "path" : "Provenance",
      "short" : "Who, What, When for a set of resources",
      "definition" : "Provenance of a resource is a record that describes entities and processes involved in producing and delivering or otherwise influencing that resource. Provenance provides a critical foundation for assessing authenticity, enabling trust, and allowing reproducibility. Provenance assertions are a form of contextual metadata and can themselves become important records with their own provenance. Provenance statement indicates clinical significance in terms of confidence in authenticity, reliability, and trustworthiness, integrity, and stage in lifecycle (e.g. Document Completion - has the artifact been legally authenticated), all of which may impact security, privacy, and trust policies.",
      "comment" : "Some parties may be duplicated between the target resource and its provenance.  For instance, the prescriber is usually (but not always) the author of the prescription resource. This resource is defined with close consideration for W3C Provenance.",
      "alias" : ["History",
      "Event",
      "Activity"],
      "min" : 0,
      "max" : "*",
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Event"
      },
      {
        "identity" : "rim",
        "map" : "ControlAct[isNormalAct() and subsumes(CACT, classCode) and moodCode=EVN]"
      },
      {
        "identity" : "w3c.prov",
        "map" : "Activity"
      }]
    },
   