@prefix fhir: <http://hl7.org/fhir/> .
@prefix loinc: <http://loinc.org/rdf#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

# - resource -------------------------------------------------------------------

<http://hl7.org/fhir/us/pacio-adi/Goal/Example-Smith-Johnson-PersonalInterventionPreference3> a fhir:Goal;
  fhir:nodeRole fhir:treeRoot;
  fhir:Resource.id [ fhir:value "Example-Smith-Johnson-PersonalInterventionPreference3"];
  fhir:Resource.meta [
     fhir:Meta.profile [
       fhir:value "http://hl7.org/fhir/us/pacio-adi/StructureDefinition/PADI-PersonalInterventionPreference";
       fhir:index 0;
       fhir:link <http://hl7.org/fhir/us/pacio-adi/StructureDefinition/PADI-PersonalInterventionPreference>
     ]
  ];
  fhir:DomainResource.text [
     fhir:Narrative.status [ fhir:value "generated" ];
     fhir:Narrative.div "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p>If my health ever deteriorates due to a terminal illness, and my doctors believe I will not be able to interact meaningfully with my family, friends, or surroundings,</p><p><i>I would like for them to keep trying life-sustaining treatments until my healthcare agent decides it is time to stop and such treatments and let me die gently.</i></p></div>"
  ];
  fhir:Goal.lifecycleStatus [ fhir:value "proposed"];
  fhir:Goal.category [
     fhir:index 0;
     fhir:CodeableConcept.coding [
       fhir:index 0;
       fhir:Coding.system [ fhir:value "http://hl7.org/fhir/us/pacio-adi/CodeSystem/PADIGoalCategoryCS" ];
       fhir:Coding.code [ fhir:value "intervention-preference" ];
       fhir:Coding.display [ fhir:value "Intervention preference" ]
     ]
  ], [
     fhir:index 1;
     fhir:CodeableConcept.coding [
       fhir:index 0;
       a loinc:75778-1;
       fhir:Coding.system [ fhir:value "http://loinc.org" ];
       fhir:Coding.code [ fhir:value "75778-1" ];
       fhir:Coding.display [ fhir:value "Information to tell doctors if I have a severe, irreversible brain injury or illness and can't dress, feed, or bathe myself, or communicate my medical wishes, but can be kept alive [Reported]" ]
     ]
  ];
  fhir:Goal.description [
     fhir:Element.extension [
       fhir:index 0;
       fhir:Element.extension [
         fhir:index 0;
         fhir:Extension.url [ fhir:value "Context" ];
         fhir:Extension.valueString [ fhir:value "If my health ever deteriorates due to a terminal illness, and my doctors believe I will not be able to interact meaningfully with my family, friends, or surroundings" ]
       ], [
         fhir:index 1;
         fhir:Extension.url [ fhir:value "Value" ];
         fhir:Extension.valueString [ fhir:value "I would like for them to keep trying life-sustaining treatments until my healthcare agent decides it is time to stop and such treatments and let me die gently." ]
       ];
       fhir:Extension.url [ fhir:value "http://hl7.org/fhir/us/pacio-adi/StructureDefinition/padi-contextualValue-extension" ]
     ];
     fhir:CodeableConcept.text [ fhir:value "If my health ever deteriorates due to a terminal illness, and my doctors believe I will not be able to interact meaningfully with my family, friends, or surroundings, I would like for them to keep trying life-sustaining treatments until my healthcare agent decides it is time to stop and such treatments and let me die gently." ]
  ];
  fhir:Goal.subject [
     fhir:link <http://hl7.org/fhir/us/pacio-adi/Patient/Example-Smith-Johnson-Patient1>;
     fhir:Reference.reference [ fhir:value "Patient/Example-Smith-Johnson-Patient1" ]
  ];
  fhir:Goal.expressedBy [
     fhir:link <http://hl7.org/fhir/us/pacio-adi/Patient/Example-Smith-Johnson-Patient1>;
     fhir:Reference.reference [ fhir:value "Patient/Example-Smith-Johnson-Patient1" ]
  ] .

<http://hl7.org/fhir/us/pacio-adi/Patient/Example-Smith-Johnson-Patient1> a fhir:us .

# - ontology header ------------------------------------------------------------

<http://hl7.org/fhir/us/pacio-adi/Goal/Example-Smith-Johnson-PersonalInterventionPreference3.ttl> a owl:Ontology;
  owl:imports fhir:fhir.ttl;
  owl:versionIRI <http://build.fhir.org/us/pacio-adi/Goal/Example-Smith-Johnson-PersonalInterventionPreference3.ttl> .

# -------------------------------------------------------------------------------------

