eHealth Infrastructure (v2020.4)

{
  "resourceType" : "StructureDefinition",
  "id" : "ehealth-provenance",
  "text" : {
    "status" : "generated",
    "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\"><table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"border: 0px #F0F0F0 solid; font-size: 11px; font-family: verdana; vertical-align: top;\"><tr style=\"border: 1px #F0F0F0 solid; font-size: 11px; font-family: verdana; vertical-align: top;\"><th style=\"vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><a href=\"http://hl7.org/fhir/STU3/formats.html#table\" title=\"The logical name of the element\">Name</a></th><th style=\"vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><a href=\"http://hl7.org/fhir/STU3/formats.html#table\" title=\"Information about the use of the element\">Flags</a></th><th style=\"vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><a href=\"http://hl7.org/fhir/STU3/formats.html#table\" title=\"Minimum and Maximum # of times the the element can appear in the instance\">Card.</a></th><th style=\"width: 100px\" class=\"hierarchy\"><a href=\"http://hl7.org/fhir/STU3/formats.html#table\" title=\"Reference to the type of the element\">Type</a></th><th style=\"vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><a href=\"http://hl7.org/fhir/STU3/formats.html#table\" title=\"Additional information about the element\">Description &amp; Constraints</a><span style=\"float: right\"><a href=\"http://hl7.org/fhir/STU3/formats.html#table\" title=\"Legend for this format\"><img src=\"http://hl7.org/fhir/STU3/help16.png\" alt=\"doco\" style=\"background-color: inherit\"/></a></span></th></tr><tr style=\"border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white;\"><td style=\"vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck1.png)\" class=\"hierarchy\"><img src=\"tbl_spacer.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"icon_resource.png\" alt=\".\" style=\"background-color: white; background-color: inherit\" title=\"Resource\" class=\"hierarchy\"/> Provenance<a name=\"Provenance\"> </a></td><td style=\"vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"/><td style=\"vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><span style=\"opacity: 0.5\">0</span><span style=\"opacity: 0.5\">..</span><span style=\"opacity: 0.5\">*</span></td><td style=\"vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><a href=\"http://hl7.org/fhir/STU3/provenance.html\">Provenance</a></td><td style=\"vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><span style=\"opacity: 0.5\">Who, What, When for a set of resources</span></td></tr>\r\n<tr style=\"border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7;\"><td style=\"vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck10.png)\" class=\"hierarchy\"><img src=\"tbl_spacer.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vjoin.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"icon_reference.png\" alt=\".\" style=\"background-color: #F7F7F7; background-color: inherit\" title=\"Reference to another Resource\" class=\"hierarchy\"/> target<a name=\"Provenance.target\"> </a></td><td style=\"vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"/><td style=\"vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><span style=\"opacity: 0.5\">1</span><span style=\"opacity: 0.5\">..</span><span style=\"opacity: 0.5\">*</span></td><td style=\"vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><a href=\"http://hl7.org/fhir/STU3/references.html\">Reference</a>(<a href=\"http://hl7.org/fhir/STU3/resource.html\">Resource</a>)<a href=\"http://hl7.org/fhir/STU3/valueset-resource-aggregation-mode.html\"> {</a><a href=\"http://hl7.org/fhir/STU3/valueset-resource-aggregation-mode.html\" title=\"The reference to a resource that has to be resolved externally to the resource that includes the reference.\">r</a><a href=\"http://hl7.org/fhir/STU3/valueset-resource-aggregation-mode.html\">}</a></td><td style=\"vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><span style=\"opacity: 0.5\">Target Reference(s) (usually version specific)</span></td></tr>\r\n<tr style=\"border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white;\"><td style=\"vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck10.png)\" class=\"hierarchy\"><img src=\"tbl_spacer.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vjoin.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"icon_element.gif\" alt=\".\" style=\"background-color: white; background-color: inherit\" title=\"Element\" class=\"hierarchy\"/> policy<a name=\"Provenance.policy\"> </a></td><td style=\"vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"/><td style=\"vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\">1..*</td><td style=\"vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><a style=\"opacity: 0.5\" href=\"http://hl7.org/fhir/STU3/datatypes.html#uri\">uri</a></td><td style=\"vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><span style=\"opacity: 0.5\">Policy or plan the activity was defined by</span><br/><span style=\"font-weight:bold\">Binding: </span><a href=\"ValueSet-ehealth-provenance-policies.html\">Policies for provenances</a> (<a href=\"http://hl7.org/fhir/STU3/terminologies.html#required\" title=\"To be conformant, the concept in this element SHALL be from the specified value set.\">required</a>)</td></tr>\r\n<tr style=\"border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7;\"><td style=\"vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck10.png)\" class=\"hierarchy\"><img src=\"tbl_spacer.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vjoin.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"icon_reference.png\" alt=\".\" style=\"background-color: #F7F7F7; background-color: inherit\" title=\"Reference to another Resource\" class=\"hierarchy\"/> location<a name=\"Provenance.location\"> </a></td><td style=\"vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"/><td style=\"vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><span style=\"opacity: 0.5\">0</span><span style=\"opacity: 0.5\">..</span><span style=\"opacity: 0.5\">1</span></td><td style=\"vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><a href=\"http://hl7.org/fhir/STU3/references.html\">Reference</a>(<a href=\"http://hl7.org/fhir/STU3/location.html\">Location</a>)<a href=\"http://hl7.org/fhir/STU3/valueset-resource-aggregation-mode.html\"> {</a><a href=\"http://hl7.org/fhir/STU3/valueset-resource-aggregation-mode.html\" title=\"The reference to a resource that has to be resolved externally to the resource that includes the reference.\">r</a><a href=\"http://hl7.org/fhir/STU3/valueset-resource-aggregation-mode.html\">}</a></td><td style=\"vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><span style=\"opacity: 0.5\">Where the activity occurred, if relevant</span></td></tr>\r\n<tr style=\"border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white;\"><td style=\"vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck11.png)\" class=\"hierarchy\"><img src=\"tbl_spacer.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vjoin.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"icon_element.gif\" alt=\".\" style=\"background-color: white; background-color: inherit\" title=\"Element\" class=\"hierarchy\"/> agent<a name=\"Provenance.agent\"> </a></td><td style=\"vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"/><td style=\"vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"/><td style=\"vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"/><td style=\"vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"/></tr>\r\n<tr style=\"border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7;\"><td style=\"vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck111.png)\" class=\"hierarchy\"><img src=\"tbl_spacer.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vline.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vjoin.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"icon_choice.gif\" alt=\".\" style=\"background-color: #F7F7F7; background-color: inherit\" title=\"Choice of Types\" class=\"hierarchy\"/> who[x]<a name=\"Provenance.agent.who_x_\"> </a></td><td style=\"vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"/><td style=\"vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><span style=\"opacity: 0.5\">1</span><span style=\"opacity: 0.5\">..</span><span style=\"opacity: 0.5\">1</span></td><td style=\"vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"/><td style=\"vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><span style=\"opacity: 0.5\">Who participated</span></td></tr>\r\n<tr style=\"border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white;\"><td style=\"vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck1110.png)\" class=\"hierarchy\"><img src=\"tbl_spacer.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vline.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vline.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vjoin.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"icon_primitive.png\" alt=\".\" style=\"background-color: white; background-color: inherit\" title=\"Primitive Data Type\" class=\"hierarchy\"/> <span title=\"Base StructureDefinition for uri Type: String of characters used to identify a name or a resource\">whoUri</span></td><td style=\"vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"/><td style=\"vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"></td><td style=\"vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><a href=\"http://hl7.org/fhir/STU3/datatypes.html#uri\">uri</a></td><td style=\"vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"/></tr>\r\n<tr style=\"border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7;\"><td style=\"vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck1100.png)\" class=\"hierarchy\"><img src=\"tbl_spacer.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vline.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vline.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vjoin_end.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"icon_reference.png\" alt=\".\" style=\"background-color: #F7F7F7; background-color: inherit\" title=\"Reference to another Resource\" class=\"hierarchy\"/> whoReference</td><td style=\"vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"/><td style=\"vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"></td><td style=\"vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><a href=\"http://hl7.org/fhir/STU3/references.html#Reference\">Reference</a>(<a href=\"StructureDefinition-ehealth-practitioner.html\">eHealth Practitioner</a> | <a href=\"StructureDefinition-ehealth-relatedperson.html\">eHealth RelatedPerson</a> | <a href=\"StructureDefinition-ehealth-patient.html\">eHealth Patient</a> | <a href=\"StructureDefinition-ehealth-device.html\">eHealth Device</a> | <a href=\"StructureDefinition-ehealth-organization.html\">eHealth Organization</a>)</td><td style=\"vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"/></tr>\r\n<tr style=\"border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white;\"><td style=\"vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck101.png)\" class=\"hierarchy\"><img src=\"tbl_spacer.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vline.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vjoin_end.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"icon_choice.gif\" alt=\".\" style=\"background-color: white; background-color: inherit\" title=\"Choice of Types\" class=\"hierarchy\"/> onBehalfOf[x]<a name=\"Provenance.agent.onBehalfOf_x_\"> </a></td><td style=\"vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"/><td style=\"vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><span style=\"opacity: 0.5\">0</span><span style=\"opacity: 0.5\">..</span><span style=\"opacity: 0.5\">1</span></td><td style=\"vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"/><td style=\"vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><span style=\"opacity: 0.5\">Who the agent is representing</span></td></tr>\r\n<tr style=\"border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7;\"><td style=\"vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck1010.png)\" class=\"hierarchy\"><img src=\"tbl_spacer.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vline.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_blank.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vjoin.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"icon_primitive.png\" alt=\".\" style=\"background-color: #F7F7F7; background-color: inherit\" title=\"Primitive Data Type\" class=\"hierarchy\"/> <span title=\"Base StructureDefinition for uri Type: String of characters used to identify a name or a resource\">onBehalfOfUri</span></td><td style=\"vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"/><td style=\"vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"></td><td style=\"vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><a href=\"http://hl7.org/fhir/STU3/datatypes.html#uri\">uri</a></td><td style=\"vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"/></tr>\r\n<tr style=\"border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white;\"><td style=\"vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck1000.png)\" class=\"hierarchy\"><img src=\"tbl_spacer.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vline.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_blank.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vjoin_end.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"icon_reference.png\" alt=\".\" style=\"background-color: white; background-color: inherit\" title=\"Reference to another Resource\" class=\"hierarchy\"/> onBehalfOfReference</td><td style=\"vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"/><td style=\"vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"></td><td style=\"vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><a href=\"http://hl7.org/fhir/STU3/references.html#Reference\">Reference</a>(<a href=\"StructureDefinition-ehealth-practitioner.html\">eHealth Practitioner</a> | <a href=\"StructureDefinition-ehealth-relatedperson.html\">eHealth RelatedPerson</a> | <a href=\"StructureDefinition-ehealth-patient.html\">eHealth Patient</a> | <a href=\"StructureDefinition-ehealth-device.html\">eHealth Device</a> | <a href=\"StructureDefinition-ehealth-organization.html\">eHealth Organization</a>)</td><td style=\"vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"/></tr>\r\n<tr style=\"border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7;\"><td style=\"vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck01.png)\" class=\"hierarchy\"><img src=\"tbl_spacer.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vjoin_end.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"icon_element.gif\" alt=\".\" style=\"background-color: #F7F7F7; background-color: inherit\" title=\"Element\" class=\"hierarchy\"/> entity<a name=\"Provenance.entity\"> </a></td><td style=\"vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"/><td style=\"vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"/><td style=\"vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"/><td style=\"vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"/></tr>\r\n<tr style=\"border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white;\"><td style=\"vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck012.png)\" class=\"hierarchy\"><img src=\"tbl_spacer.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_blank.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vjoin.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"icon_extension_simple.png\" alt=\".\" style=\"background-color: white; background-color: inherit\" title=\"Simple Extension\" class=\"hierarchy\"/> extension<a name=\"Provenance.entity.extension\"> </a></td><td style=\"vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"/><td style=\"vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><span style=\"opacity: 0.5\">0</span><span style=\"opacity: 0.5\">..</span><span style=\"opacity: 0.5\">*</span></td><td style=\"vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><a style=\"opacity: 0.5\" href=\"http://hl7.org/fhir/STU3/extensibility.html#Extension\">Extension</a></td><td style=\"vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><span style=\"opacity: 0.5\">Extension</span><br/><span style=\"font-weight:bold\">Slice: </span>Unordered, Open by value:url</td></tr>\r\n<tr style=\"border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7;\"><td style=\"vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck004.png)\" class=\"hierarchy\"><img src=\"tbl_spacer.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_blank.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vjoin_end.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"icon_slice_item.png\" alt=\".\" style=\"background-color: #F7F7F7; background-color: inherit\" title=\"Slice Item\" class=\"hierarchy\"/> <span title=\"Extension URL = http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-provenance-dateTimeOfReusedEntity\">ehealth-provenance-dateTimeOfReusedEntity</span><a name=\"Provenance.entity.extension\"> </a></td><td style=\"vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"/><td style=\"vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\">0..1</td><td style=\"vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><a href=\"http://hl7.org/fhir/STU3/datatypes.html#dateTime\">dateTime</a>, <a href=\"http://hl7.org/fhir/STU3/datatypes.html#Period\">Period</a></td><td style=\"vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><span style=\"opacity: 0.5\">Extension</span><br/><span style=\"font-weight:bold\">URL: </span><a href=\"http://hl7.org/fhir/STU3/StructureDefinition-ehealth-provenance-dateTimeOfReusedEntity.html\">http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-provenance-dateTimeOfReusedEntity</a></td></tr>\r\n<tr><td colspan=\"5\" class=\"hierarchy\"><br/><a href=\"http://hl7.org/fhir/STU3/formats.html#table\" title=\"Legend for this format\"><img src=\"http://hl7.org/fhir/STU3/help16.png\" alt=\"doco\" style=\"background-color: inherit\"/> Documentation for this format</a></td></tr></table></div>"
  },
  "url" : "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-provenance",
  "name" : "ehealth-provenance",
  "title" : "eHealth Provenance",
  "status" : "draft",
  "date" : "2020-05-22T12:11:22+00:00",
  "publisher" : "ehealth.sundhed.dk",
  "fhirVersion" : "3.0.2",
  "mapping" : [
    {
      "identity" : "rim",
      "uri" : "http://hl7.org/v3",
      "name" : "RIM Mapping"
    },
    {
      "identity" : "w3c.prov",
      "uri" : "http://www.w3.org/ns/prov",
      "name" : "W3C PROV"
    },
    {
      "identity" : "w5",
      "uri" : "http://hl7.org/fhir/w5",
      "name" : "W5 Mapping"
    },
    {
      "identity" : "fhirauditevent",
      "uri" : "http://hl7.org/fhir/auditevent",
      "name" : "FHIR AuditEvent"
    }
  ],
  "kind" : "resource",
  "abstract" : false,
  "type" : "Provenance",
  "baseDefinition" : "http://hl7.org/fhir/StructureDefinition/Provenance",
  "derivation" : "constraint",
  "snapshot" : {
    "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" : "*",
        "base" : {
          "path" : "Provenance",
          "min" : 0,
          "max" : "*"
        },
        "constraint" : [
          {
            "key" : "dom-2",
            "severity" : "error",
            "human" : "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
            "expression" : "contained.contained.empty()",
            "xpath" : "not(parent::f:contained and f:contained)",
            "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
          },
          {
            "key" : "dom-1",
            "severity" : "error",
            "human" : "If the resource is contained in another resource, it SHALL NOT contain any narrative",
            "expression" : "contained.text.empty()",
            "xpath" : "not(parent::f:contained and f:text)",
            "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
          },
          {
            "key" : "dom-4",
            "severity" : "error",
            "human" : "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
            "expression" : "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()",
            "xpath" : "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
            "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
          },
          {
            "key" : "dom-3",
            "severity" : "error",
            "human" : "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource",
            "expression" : "contained.where(('#'+id in %resource.descendants().reference).not()).empty()",
            "xpath" : "not(exists(for $id in f:contained/*/@id return $id[not(ancestor::f:contained/parent::*/descendant::f:reference/@value=concat('#', $id))]))",
            "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
          }
        ],
        "mapping" : [
          {
            "identity" : "rim",
            "map" : "Entity. Role, or Act"
          },
          {
            "identity" : "rim",
            "map" : "ControlAct[isNormalAct() and subsumes(CACT, classCode) and moodCode=EVN]"
          },
          {
            "identity" : "w3c.prov",
            "map" : "Activity"
          },
          {
            "identity" : "w5",
            "map" : "infrastructure.information"
          }
        ]
      },
      {
        "id" : "Provenance.id",
        "path" : "Provenance.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.",
        "comment" : "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
        "min" : 0,
        "max" : "1",
        "base" : {
          "path" : "Resource.id",
          "min" : 0,
          "max" : "1"
        },
        "type" : [
          {
            "code" : "id"
          }
        ],
        "isSummary" : true
      },
      {
        "id" : "Provenance.meta",
        "path" : "Provenance.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",
        "base" : {
          "path" : "Resource.meta",
          "min" : 0,
          "max" : "1"
        },
        "type" : [
          {
            "code" : "Meta"
          }
        ],
        "isSummary" : true
      },
      {
        "id" : "Provenance.implicitRules",
        "path" : "Provenance.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.",
        "comment" : "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. \n\nThis element is labelled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation.",
        "min" : 0,
        "max" : "1",
        "base" : {
          "path" : "Resource.implicitRules",
          "min" : 0,
          "max" : "1"
        },
        "type" : [
          {
            "code" : "uri"
          }
        ],
        "isModifier" : true,
        "isSummary" : true
      },
      {
        "id" : "Provenance.language",
        "path" : "Provenance.language",
        "short" : "Language of the resource content",
        "definition" : "The base language in which the resource is written.",
        "comment" : "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",
        "base" : {
          "path" : "Resource.language",
          "min" : 0,
          "max" : "1"
        },
        "type" : [
          {
            "code" : "code"
          }
        ],
        "binding" : {
          "extension" : [
            {
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
              "valueReference" : {
                "reference" : "http://hl7.org/fhir/ValueSet/all-languages"
              }
            },
            {
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "Language"
            },
            {
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
              "valueBoolean" : true
            }
          ],
          "strength" : "extensible",
          "description" : "A human language.",
          "valueSetReference" : {
            "reference" : "http://hl7.org/fhir/ValueSet/languages"
          }
        }
      },
      {
        "id" : "Provenance.text",
        "path" : "Provenance.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.",
        "comment" : "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded in formation is added later.",
        "alias" : [
          "narrative",
          "html",
          "xhtml",
          "display"
        ],
        "min" : 0,
        "max" : "1",
        "base" : {
          "path" : "DomainResource.text",
          "min" : 0,
          "max" : "1"
        },
        "type" : [
          {
            "code" : "Narrative"
          }
        ],
        "condition" : [
          "dom-1"
        ],
        "mapping" : [
          {
            "identity" : "rim",
            "map" : "Act.text?"
          }
        ]
      },
      {
        "id" : "Provenance.contained",
        "path" : "Provenance.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.",
        "comment" : "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" : "*",
        "base" : {
          "path" : "DomainResource.contained",
          "min" : 0,
          "max" : "*"
        },
        "type" : [
          {
            "code" : "Resource"
          }
        ],
        "mapping" : [
          {
            "identity" : "rim",
            "map" : "N/A"
          }
        ]
      },
      {
        "id" : "Provenance.extension",
        "path" : "Provenance.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.",
        "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" : "DomainResource.extension",
          "min" : 0,
          "max" : "*"
        },
        "type" : [
          {
            "code" : "Extension"
          }
        ],
        "mapping" : [
          {
            "identity" : "rim",
            "map" : "N/A"
          }
        ]
      },
      {
        "id" : "Provenance.modifierExtension",
        "path" : "Provenance.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.",
        "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" : "DomainResource.modifierExtension",
          "min" : 0,
          "max" : "*"
        },
        "type" : [
          {
            "code" : "Extension"
          }
        ],
        "isModifier" : true,
        "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 may 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 may 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"
          }
        ],
        "isSummary" : true,
        "mapping" : [
          {
            "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"
          },
          {
            "identity" : "w5",
            "map" : "what"
          }
        ]
      },
      {
        "id" : "Provenance.period",
        "path" : "Provenance.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",
        "base" : {
          "path" : "Provenance.period",
          "min" : 0,
          "max" : "1"
        },
        "type" : [
          {
            "code" : "Period"
          }
        ],
        "mapping" : [
          {
            "identity" : "rim",
            "map" : "./effectiveTime[type=IVL_TS]"
          },
          {
            "identity" : "w3c.prov",
            "map" : "Activity.startTime & Activity.endTime"
          },
          {
            "identity" : "w5",
            "map" : "when.done"
          }
        ]
      },
      {
        "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"
          }
        ],
        "isSummary" : true,
        "mapping" : [
          {
            "identity" : "rim",
            "map" : "unique(./participation[isNormalParticipation() and typeCode=AUT]/time[type=TS])"
          },
          {
            "identity" : "fhirauditevent",
            "map" : "AuditEvent.recorded"
          },
          {
            "identity" : "w3c.prov",
            "map" : "Activity.when"
          },
          {
            "identity" : "w5",
            "map" : "when.recorded"
          }
        ]
      },
      {
        "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" : 1,
        "max" : "*",
        "base" : {
          "path" : "Provenance.policy",
          "min" : 0,
          "max" : "*"
        },
        "type" : [
          {
            "code" : "uri"
          }
        ],
        "binding" : {
          "strength" : "required",
          "valueSetReference" : {
            "reference" : "http://ehealth.sundhed.dk/vs/ehealth-provenance-policies"
          }
        },
        "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"
          }
        ],
        "mapping" : [
          {
            "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"
          },
          {
            "identity" : "w5",
            "map" : "where"
          }
        ]
      },
      {
        "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" : "Coding"
          }
        ],
        "binding" : {
          "extension" : [
            {
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ProvenanceReason"
            }
          ],
          "strength" : "extensible",
          "description" : "The reason the activity took place.",
          "valueSetReference" : {
            "reference" : "http://hl7.org/fhir/ValueSet/v3-PurposeOfUse"
          }
        },
        "mapping" : [
          {
            "identity" : "rim",
            "map" : "unique(./reasonCode)"
          },
          {
            "identity" : "fhirauditevent",
            "map" : "AuditEvent.purposeOfEvent"
          },
          {
            "identity" : "w3c.prov",
            "map" : "Activity.Activity"
          },
          {
            "identity" : "w5",
            "map" : "why"
          }
        ]
      },
      {
        "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" : "Coding"
          }
        ],
        "binding" : {
          "extension" : [
            {
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ProvenanceActivity"
            }
          ],
          "strength" : "extensible",
          "description" : "The activity that took place.",
          "valueSetReference" : {
            "reference" : "http://hl7.org/fhir/ValueSet/provenance-activity-type"
          }
        },
        "mapping" : [
          {
            "identity" : "rim",
            "map" : "Act.code"
          },
          {
            "identity" : "fhirauditevent",
            "map" : "AuditEvent.purposeOfEvent"
          },
          {
            "identity" : "w3c.prov",
            "map" : "Activity.Activity"
          },
          {
            "identity" : "w5",
            "map" : "why"
          }
        ]
      },
      {
        "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() | (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "mapping" : [
          {
            "identity" : "rim",
            "map" : "./participation[isNormalParticipation()]  OR  ./outboundRelationship[isNormalActRelationship() and typeCode='DRIV']"
          },
          {
            "identity" : "fhirauditevent",
            "map" : "AuditEvent.agent"
          },
          {
            "identity" : "w3c.prov",
            "map" : "Agent"
          },
          {
            "identity" : "w5",
            "map" : "who"
          }
        ]
      },
      {
        "id" : "Provenance.agent.id",
        "path" : "Provenance.agent.id",
        "representation" : [
          "xmlAttr"
        ],
        "short" : "xml:id (or equivalent in JSON)",
        "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"
          }
        ],
        "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. 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.",
        "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"
          }
        ],
        "mapping" : [
          {
            "identity" : "rim",
            "map" : "n/a"
          }
        ]
      },
      {
        "id" : "Provenance.agent.modifierExtension",
        "path" : "Provenance.agent.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.",
        "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",
          "modifiers"
        ],
        "min" : 0,
        "max" : "*",
        "base" : {
          "path" : "BackboneElement.modifierExtension",
          "min" : 0,
          "max" : "*"
        },
        "type" : [
          {
            "code" : "Extension"
          }
        ],
        "isModifier" : true,
        "isSummary" : true,
        "mapping" : [
          {
            "identity" : "rim",
            "map" : "N/A"
          }
        ]
      },
      {
        "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: author, performer, enterer, attester, doctor, nurse, clerk, etc.",
        "min" : 0,
        "max" : "*",
        "base" : {
          "path" : "Provenance.agent.role",
          "min" : 0,
          "max" : "*"
        },
        "type" : [
          {
            "code" : "CodeableConcept"
          }
        ],
        "isSummary" : true,
        "binding" : {
          "extension" : [
            {
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ProvenanceAgentRole"
            }
          ],
          "strength" : "extensible",
          "description" : "The role that a provenance agent played with respect to the activity.",
          "valueSetReference" : {
            "reference" : "http://hl7.org/fhir/ValueSet/security-role-type"
          }
        },
        "mapping" : [
          {
            "identity" : "rim",
            "map" : ".role and/or .typecode"
          },
          {
            "identity" : "fhirauditevent",
            "map" : "AuditEvent.agent.role"
          },
          {
            "identity" : "w3c.prov",
            "map" : "Agent.Attribution"
          }
        ]
      },
      {
        "id" : "Provenance.agent.who[x]",
        "path" : "Provenance.agent.who[x]",
        "short" : "Who participated",
        "definition" : "The individual, device or organization that participated in the event.",
        "min" : 1,
        "max" : "1",
        "base" : {
          "path" : "Provenance.agent.who[x]",
          "min" : 1,
          "max" : "1"
        },
        "type" : [
          {
            "code" : "uri"
          },
          {
            "code" : "Reference",
            "targetProfile" : "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-practitioner"
          },
          {
            "code" : "Reference",
            "targetProfile" : "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-relatedperson"
          },
          {
            "code" : "Reference",
            "targetProfile" : "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-patient"
          },
          {
            "code" : "Reference",
            "targetProfile" : "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-device"
          },
          {
            "code" : "Reference",
            "targetProfile" : "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-organization"
          }
        ],
        "isSummary" : true,
        "mapping" : [
          {
            "identity" : "rim",
            "map" : ".id"
          },
          {
            "identity" : "w5",
            "map" : "who.actor"
          }
        ]
      },
      {
        "id" : "Provenance.agent.onBehalfOf[x]",
        "path" : "Provenance.agent.onBehalfOf[x]",
        "short" : "Who the agent is representing",
        "definition" : "The individual, device, or organization for whom the change was made.",
        "min" : 0,
        "max" : "1",
        "base" : {
          "path" : "Provenance.agent.onBehalfOf[x]",
          "min" : 0,
          "max" : "1"
        },
        "type" : [
          {
            "code" : "uri"
          },
          {
            "code" : "Reference",
            "targetProfile" : "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-practitioner"
          },
          {
            "code" : "Reference",
            "targetProfile" : "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-relatedperson"
          },
          {
            "code" : "Reference",
            "targetProfile" : "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-patient"
          },
          {
            "code" : "Reference",
            "targetProfile" : "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-device"
          },
          {
            "code" : "Reference",
            "targetProfile" : "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-organization"
          }
        ],
        "mapping" : [
          {
            "identity" : "rim",
            "map" : "Person, Practitioner, Organization, Device :* .role [classCode = RoleClassMutualRelationship; role.code and * .scopes[Role](classCode=IDENT) and *.plays [Role.Code]"
          }
        ]
      },
      {
        "id" : "Provenance.agent.relatedAgentType",
        "path" : "Provenance.agent.relatedAgentType",
        "short" : "Type of relationship between agents",
        "definition" : "The type of relationship between agents.",
        "min" : 0,
        "max" : "1",
        "base" : {
          "path" : "Provenance.agent.relatedAgentType",
          "min" : 0,
          "max" : "1"
        },
        "type" : [
          {
            "code" : "CodeableConcept"
          }
        ],
        "binding" : {
          "extension" : [
            {
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "RelatedAgentType"
            }
          ],
          "strength" : "example",
          "description" : "Type of relationship between two provenance agents.",
          "valueSetReference" : {
            "reference" : "http://hl7.org/fhir/ValueSet/v3-RoleLinkType"
          }
        },
        "mapping" : [
          {
            "identity" : "rim",
            "map" : ".typeCode"
          },
          {
            "identity" : "w3c.prov",
            "map" : "type"
          }
        ]
      },
      {
        "id" : "Provenance.entity",
        "path" : "Provenance.entity",
        "short" : "An entity used in this activity",
        "definition" : "An entity used in this activity.",
        "comment" : "Multiple userIds may be associated with the same Practitioner or other individual across various appearances, each with distinct privileges.",
        "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() | (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "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" : "xml:id (or equivalent in JSON)",
        "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"
          }
        ],
        "mapping" : [
          {
            "identity" : "rim",
            "map" : "n/a"
          }
        ]
      },
      {
        "id" : "Provenance.entity.extension",
        "path" : "Provenance.entity.extension",
        "slicing" : {
          "discriminator" : [
            {
              "type" : "value",
              "path" : "url"
            }
          ],
          "rules" : "open"
        },
        "short" : "Extension",
        "definition" : "An Extension",
        "min" : 0,
        "max" : "*",
        "base" : {
          "path" : "Element.extension",
          "min" : 0,
          "max" : "*"
        },
        "type" : [
          {
            "code" : "Extension"
          }
        ]
      },
      {
        "id" : "Provenance.entity.extension:dateTimeOfReusedEntity",
        "path" : "Provenance.entity.extension",
        "sliceName" : "dateTimeOfReusedEntity",
        "short" : "Extension",
        "definition" : "An Extension",
        "min" : 0,
        "max" : "1",
        "base" : {
          "path" : "Element.extension",
          "min" : 0,
          "max" : "*"
        },
        "type" : [
          {
            "code" : "Extension",
            "profile" : "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-provenance-dateTimeOfReusedEntity"
          }
        ],
        "condition" : [
          "ele-1"
        ],
        "constraint" : [
          {
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() | (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }
        ]
      },
      {
        "id" : "Provenance.entity.modifierExtension",
        "path" : "Provenance.entity.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.",
        "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",
          "modifiers"
        ],
        "min" : 0,
        "max" : "*",
        "base" : {
          "path" : "BackboneElement.modifierExtension",
          "min" : 0,
          "max" : "*"
        },
        "type" : [
          {
            "code" : "Extension"
          }
        ],
        "isModifier" : true,
        "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"
          }
        ],
        "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.",
          "valueSetReference" : {
            "reference" : "http://hl7.org/fhir/ValueSet/provenance-entity-role"
          }
        },
        "mapping" : [
          {
            "identity" : "rim",
            "map" : "./typeCode"
          },
          {
            "identity" : "fhirauditevent",
            "map" : "AuditEvent.entity.lifecycle"
          },
          {
            "identity" : "w3c.prov",
            "map" : "Entity.role"
          }
        ]
      },
      {
        "id" : "Provenance.entity.what[x]",
        "path" : "Provenance.entity.what[x]",
        "short" : "Identity of entity",
        "definition" : "Identity of the  Entity used. May be a logical or physical uri and maybe absolute or relative.",
        "comment" : "Identity may be a reference to a resource or to something else, depending on the type.",
        "min" : 1,
        "max" : "1",
        "base" : {
          "path" : "Provenance.entity.what[x]",
          "min" : 1,
          "max" : "1"
        },
        "type" : [
          {
            "code" : "uri"
          },
          {
            "code" : "Reference",
            "targetProfile" : "http://hl7.org/fhir/StructureDefinition/Resource"
          },
          {
            "code" : "Identifier"
          }
        ],
        "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",
        "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"
          }
        ],
        "mapping" : [
          {
            "identity" : "rim",
            "map" : "./signatureText"
          }
        ]
      }
    ]
  },
  "differential" : {
    "element" : [
      {
        "id" : "Provenance",
        "path" : "Provenance"
      },
      {
        "id" : "Provenance.target",
        "path" : "Provenance.target",
        "type" : [
          {
            "code" : "Reference",
            "targetProfile" : "http://hl7.org/fhir/StructureDefinition/Resource"
          }
        ]
      },
      {
        "id" : "Provenance.policy",
        "path" : "Provenance.policy",
        "min" : 1,
        "binding" : {
          "strength" : "required",
          "valueSetUri" : "http://ehealth.sundhed.dk/vs/ehealth-provenance-policies"
        }
      },
      {
        "id" : "Provenance.location",
        "path" : "Provenance.location",
        "type" : [
          {
            "code" : "Reference",
            "targetProfile" : "http://hl7.org/fhir/StructureDefinition/Location"
          }
        ]
      },
      {
        "id" : "Provenance.agent.who[x]",
        "path" : "Provenance.agent.who[x]",
        "type" : [
          {
            "code" : "uri"
          },
          {
            "code" : "Reference",
            "targetProfile" : "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-practitioner"
          },
          {
            "code" : "Reference",
            "targetProfile" : "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-relatedperson"
          },
          {
            "code" : "Reference",
            "targetProfile" : "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-patient"
          },
          {
            "code" : "Reference",
            "targetProfile" : "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-device"
          },
          {
            "code" : "Reference",
            "targetProfile" : "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-organization"
          }
        ]
      },
      {
        "id" : "Provenance.agent.onBehalfOf[x]",
        "path" : "Provenance.agent.onBehalfOf[x]",
        "type" : [
          {
            "code" : "uri"
          },
          {
            "code" : "Reference",
            "targetProfile" : "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-practitioner"
          },
          {
            "code" : "Reference",
            "targetProfile" : "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-relatedperson"
          },
          {
            "code" : "Reference",
            "targetProfile" : "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-patient"
          },
          {
            "code" : "Reference",
            "targetProfile" : "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-device"
          },
          {
            "code" : "Reference",
            "targetProfile" : "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-organization"
          }
        ]
      },
      {
        "id" : "Provenance.entity.extension",
        "path" : "Provenance.entity.extension",
        "slicing" : {
          "discriminator" : [
            {
              "type" : "value",
              "path" : "url"
            }
          ],
          "rules" : "open"
        }
      },
      {
        "id" : "Provenance.entity.extension:dateTimeOfReusedEntity",
        "path" : "Provenance.entity.extension",
        "sliceName" : "dateTimeOfReusedEntity",
        "min" : 0,
        "max" : "1",
        "type" : [
          {
            "code" : "Extension",
            "profile" : "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-provenance-dateTimeOfReusedEntity"
          }
        ]
      }
    ]
  }
}