@prefix fhir: <http://hl7.org/fhir/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

# - resource -------------------------------------------------------------------

<http://johnmoehrke.github.io/correction/Provenance/ex-patient-forgotten> a fhir:Provenance ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "ex-patient-forgotten"] ; # 
  fhir:meta [
     fhir:security ( [
       fhir:system [
         fhir:v "http://terminology.hl7.org/CodeSystem/v3-ActReason"^^xsd:anyURI ;
         fhir:l <http://terminology.hl7.org/CodeSystem/v3-ActReason>
       ] ;
       fhir:code [ fhir:v "HTEST" ]
     ] )
  ] ; # 
  fhir:text [
     fhir:status [ fhir:v "generated" ] ;
     fhir:div [ fhir:v "<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>"^^rdf:XMLLiteral ]
  ] ; # 
  fhir:target ( [
     fhir:l <http://johnmoehrke.github.io/correction/Patient/ex-patient> ;
     fhir:reference [ fhir:v "Patient/ex-patient" ]
  ] [
     fhir:l <http://johnmoehrke.github.io/correction/Observation/ex-observation-food> ;
     fhir:reference [ fhir:v "Observation/ex-observation-food" ]
  ] [
     fhir:l <http://johnmoehrke.github.io/correction/AllergyIntolerance/ex-allergy-corrected> ;
     fhir:reference [ fhir:v "AllergyIntolerance/ex-allergy-corrected" ]
  ] [
     fhir:l <http://johnmoehrke.github.io/correction/Immunization/ex-immunization-correction> ;
     fhir:reference [ fhir:v "Immunization/ex-immunization-correction" ]
  ] [
     fhir:l <http://johnmoehrke.github.io/correction/Condition/ex-corrected> ;
     fhir:reference [ fhir:v "Condition/ex-corrected" ]
  ] [
     fhir:l <http://johnmoehrke.github.io/correction/Immunization/ex-immunization-wrong> ;
     fhir:reference [ fhir:v "Immunization/ex-immunization-wrong" ]
  ] [
     fhir:l <http://johnmoehrke.github.io/correction/Condition/ex-condition-initial> ;
     fhir:reference [ fhir:v "Condition/ex-condition-initial" ]
  ] ) ; # 
  fhir:recorded [ fhir:v "2024-06-01T18:00:00Z"^^xsd:dateTime] ; # 
  fhir:authorization ( [
     fhir:concept [
       fhir:coding ( [
         fhir:system [
           fhir:v "http://terminology.hl7.org/CodeSystem/v3-ActReason"^^xsd:anyURI ;
           fhir:l <http://terminology.hl7.org/CodeSystem/v3-ActReason>
         ] ;
         fhir:code [ fhir:v "PATRQT" ]
       ] ) ;
       fhir:text [ fhir:v "GDPR-ART17-ERASURE" ]
     ]
  ] ) ; # 
  fhir:why [ fhir:v "Patient requested erasure of their data."] ; # 
  fhir:basedOn ( [
     fhir:l <https://example.org/DocumentReference/ex-data-erasure-request> ;
     fhir:reference [ fhir:v "https://example.org/DocumentReference/ex-data-erasure-request" ]
  ] ) ; # 
  fhir:patient [
     fhir:l <http://johnmoehrke.github.io/correction/Patient/ex-patient> ;
     fhir:reference [ fhir:v "Patient/ex-patient" ]
  ] ; # 
  fhir:agent ( [
     fhir:type [
       fhir:coding ( [
         fhir:system [
           fhir:v "http://terminology.hl7.org/CodeSystem/extra-security-role-type"^^xsd:anyURI ;
           fhir:l <http://terminology.hl7.org/CodeSystem/extra-security-role-type>
         ] ;
         fhir:code [ fhir:v "datasubject" ]
       ] )
     ] ;
     fhir:who [
       fhir:l <http://johnmoehrke.github.io/correction/Patient/ex-patient> ;
       fhir:reference [ fhir:v "Patient/ex-patient" ]
     ]
  ] ) ; # 
  fhir:entity ( [
     fhir:role [ fhir:v "removal" ] ;
     fhir:what [
       fhir:l <http://johnmoehrke.github.io/correction/Patient/ex-patient> ;
       fhir:reference [ fhir:v "Patient/ex-patient" ]
     ]
  ] [
     fhir:role [ fhir:v "removal" ] ;
     fhir:what [
       fhir:l <http://johnmoehrke.github.io/correction/Observation/ex-observation-food> ;
       fhir:reference [ fhir:v "Observation/ex-observation-food" ]
     ]
  ] [
     fhir:role [ fhir:v "removal" ] ;
     fhir:what [
       fhir:l <http://johnmoehrke.github.io/correction/AllergyIntolerance/ex-allergy-corrected> ;
       fhir:reference [ fhir:v "AllergyIntolerance/ex-allergy-corrected" ]
     ]
  ] [
     fhir:role [ fhir:v "removal" ] ;
     fhir:what [
       fhir:l <http://johnmoehrke.github.io/correction/Immunization/ex-immunization-correction> ;
       fhir:reference [ fhir:v "Immunization/ex-immunization-correction" ]
     ]
  ] [
     fhir:role [ fhir:v "removal" ] ;
     fhir:what [
       fhir:l <http://johnmoehrke.github.io/correction/Condition/ex-corrected> ;
       fhir:reference [ fhir:v "Condition/ex-corrected" ]
     ]
  ] [
     fhir:role [ fhir:v "removal" ] ;
     fhir:what [
       fhir:l <http://johnmoehrke.github.io/correction/Immunization/ex-immunization-wrong> ;
       fhir:reference [ fhir:v "Immunization/ex-immunization-wrong" ]
     ]
  ] [
     fhir:role [ fhir:v "removal" ] ;
     fhir:what [
       fhir:l <http://johnmoehrke.github.io/correction/Condition/ex-condition-initial> ;
       fhir:reference [ fhir:v "Condition/ex-condition-initial" ]
     ]
  ] ) . # 

# -------------------------------------------------------------------------------------

