{
  "resourceType" : "Provenance",
  "id" : "ex-patient-forgotten",
  "meta" : {
    "security" : [{
      "system" : "http://terminology.hl7.org/CodeSystem/v3-ActReason",
      "code" : "HTEST"
    }]
  },
  "text" : {
    "status" : "generated",
    "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p class=\"res-header-id\"><b>Generated Narrative: Provenance ex-patient-forgotten</b></p><a name=\"ex-patient-forgotten\"> </a><a name=\"hcex-patient-forgotten\"> </a><div style=\"display: inline-block; background-color: #d9e0e7; padding: 6px; margin: 4px; border: 1px solid #8da1b4; border-radius: 5px; line-height: 60%\"><p style=\"margin-bottom: 0px\"/><p style=\"margin-bottom: 0px\">Security Label: test health data (Details: ActReason code HTEST = 'test health data')</p></div><p>Provenance for: </p><ul><li><a href=\"Patient-ex-patient.html\">John Schmidt  Other, DoB: 1923-07-25 ( http://example.org/mrn#123456)</a></li><li><a href=\"Observation-ex-observation-food.html\">Observation Allergies and adverse reactions Document</a></li><li><a href=\"AllergyIntolerance-ex-allergy-corrected.html\">AllergyIntolerance Food intolerance</a></li><li><a href=\"Immunization-ex-immunization-correction.html\">Immunization: identifier = http://example.org/immunization-identifiers#immu-covid19-001-corrected; status = completed; vaccineCode = SARS-COV-2 (COVID-19) vaccine, mRNA, spike protein, LNP, preservative free, 30 mcg/0.3mL dose; lotNumber = 67890; occurrence[x] = 2023-03-01 09:00:00+0000; site = right arm; route = Injection, intramuscular; note = Corrected immunization record to reflect the accurate vaccine dose\n  and administration site.,Original record indicated 100 mcg dose in left arm; corrected to 50 mcg dose in right arm.</a></li><li><a href=\"Condition-ex-corrected.html\">Condition Diabetes mellitus type II</a></li><li><a href=\"Immunization-ex-immunization-wrong.html\">Immunization: identifier = http://example.org/immunization-identifiers#immu-covid19-001; status = completed; vaccineCode = SARS-COV-2 (COVID-19) vaccine, mRNA, spike protein, LNP, preservative free, 100 mcg/0.5mL dose or 50 mcg/0.25mL dose; lotNumber = 12345; occurrence[x] = 2023-03-01 09:00:00+0000; site = left arm; route = Injection, intramuscular; note = Patient tolerated the vaccine well with no immediate adverse reactions.</a></li><li><a href=\"Condition-ex-condition-initial.html\">Condition Diabetes mellitus type II</a></li></ul><p>Summary</p><table class=\"grid\"><tr><td>Recorded</td><td>2024-06-01 18:00:00+0000</td></tr></table><p><b>Agents</b></p><table class=\"grid\"><tr><td><b>Type</b></td><td><b>who</b></td></tr><tr><td><span title=\"Codes:{http://terminology.hl7.org/CodeSystem/extra-security-role-type datasubject}\">Data Subject</span></td><td><a href=\"Patient-ex-patient.html\">John Schmidt  Other, DoB: 1923-07-25 ( http://example.org/mrn#123456)</a></td></tr></table></div>"
  },
  "target" : [{
    "reference" : "Patient/ex-patient"
  },
  {
    "reference" : "Observation/ex-observation-food"
  },
  {
    "reference" : "AllergyIntolerance/ex-allergy-corrected"
  },
  {
    "reference" : "Immunization/ex-immunization-correction"
  },
  {
    "reference" : "Condition/ex-corrected"
  },
  {
    "reference" : "Immunization/ex-immunization-wrong"
  },
  {
    "reference" : "Condition/ex-condition-initial"
  }],
  "recorded" : "2024-06-01T18:00:00Z",
  "authorization" : [{
    "concept" : {
      "coding" : [{
        "system" : "http://terminology.hl7.org/CodeSystem/v3-ActReason",
        "code" : "PATRQT"
      }],
      "text" : "GDPR-ART17-ERASURE"
    }
  }],
  "why" : "Patient requested erasure of their data.",
  "basedOn" : [{
    "reference" : "https://example.org/DocumentReference/ex-data-erasure-request"
  }],
  "patient" : {
    "reference" : "Patient/ex-patient"
  },
  "agent" : [{
    "type" : {
      "coding" : [{
        "system" : "http://terminology.hl7.org/CodeSystem/extra-security-role-type",
        "code" : "datasubject"
      }]
    },
    "who" : {
      "reference" : "Patient/ex-patient"
    }
  }],
  "entity" : [{
    "role" : "removal",
    "what" : {
      "reference" : "Patient/ex-patient"
    }
  },
  {
    "role" : "removal",
    "what" : {
      "reference" : "Observation/ex-observation-food"
    }
  },
  {
    "role" : "removal",
    "what" : {
      "reference" : "AllergyIntolerance/ex-allergy-corrected"
    }
  },
  {
    "role" : "removal",
    "what" : {
      "reference" : "Immunization/ex-immunization-correction"
    }
  },
  {
    "role" : "removal",
    "what" : {
      "reference" : "Condition/ex-corrected"
    }
  },
  {
    "role" : "removal",
    "what" : {
      "reference" : "Immunization/ex-immunization-wrong"
    }
  },
  {
    "role" : "removal",
    "what" : {
      "reference" : "Condition/ex-condition-initial"
    }
  }]
}