@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/Consent/Example-Smith-Johnson-HealthcareAgentConsent-Permit> a fhir:Consent ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:Resource.id [ fhir:value "Example-Smith-Johnson-HealthcareAgentConsent-Permit"] ;
  fhir:Resource.meta [
     fhir:Meta.profile [
       fhir:value "http://hl7.org/fhir/us/pacio-adi/StructureDefinition/ADI-HealthcareAgentConsentPermit" ;
       fhir:index -1 ;
       fhir:link <http://hl7.org/fhir/us/pacio-adi/StructureDefinition/ADI-HealthcareAgentConsentPermit>
     ]
  ] ;
  fhir:Resource.language [ fhir:value "en"] ;
  fhir:DomainResource.text [
     fhir:Narrative.status [ fhir:value "additional" ] ;
     fhir:Narrative.div "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p>I am consenting for my son Charles to be my authorized personal representative (primary healthcare agent) and I am permitting him to make decisions on my behalf about intubation.</p></div>"
  ] ;
  fhir:Consent.status [ fhir:value "active"] ;
  fhir:Consent.scope [
     fhir:CodeableConcept.coding [
       fhir:index -1 ;
       a loinc:81377-4 ;
       fhir:Coding.system [ fhir:value "http://loinc.org" ] ;
       fhir:Coding.code [ fhir:value "81377-4" ] ;
       fhir:Coding.display [ fhir:value "Goals, preferences, and priorities regarding the appointment of healthcare agents Narrative - Reported" ]
     ]
  ] ;
  fhir:Consent.category [
     fhir:index -1 ;
     fhir:CodeableConcept.coding [
       fhir:index -1 ;
       fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/consentcategorycodes" ] ;
       fhir:Coding.version [ fhir:value "1.0.1" ] ;
       fhir:Coding.code [ fhir:value "acd" ]
     ]
  ] ;
  fhir:Consent.patient [
     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:Consent.policy [
     fhir:index -1 ;
     fhir:Consent.policy.uri [ fhir:value "http://example.org/healthcare-agent-policy" ]
  ] ;
  fhir:Consent.provision [
     fhir:Consent.provision.type [ fhir:value "permit" ] ;
     fhir:Consent.provision.actor [
       fhir:index -1 ;
       fhir:Consent.provision.actor.role [
         fhir:CodeableConcept.coding [
           fhir:index -1 ;
           a loinc:75783-1 ;
           fhir:Coding.system [ fhir:value "http://loinc.org" ] ;
           fhir:Coding.code [ fhir:value "75783-1" ] ;
           fhir:Coding.display [ fhir:value "Primary healthcare agent [Reported]" ]
         ]
       ] ;
       fhir:Consent.provision.actor.reference [
         fhir:link <http://hl7.org/fhir/us/pacio-adi/RelatedPerson/Example-Smith-Johnson-HealthcareAgent1> ;
         fhir:Reference.reference [ fhir:value "RelatedPerson/Example-Smith-Johnson-HealthcareAgent1" ]
       ]
     ]
  ] .

<http://hl7.org/fhir/us/pacio-adi/Patient/Example-Smith-Johnson-Patient1> a fhir:us .

<http://hl7.org/fhir/us/pacio-adi/RelatedPerson/Example-Smith-Johnson-HealthcareAgent1> a fhir:us .

# - ontology header ------------------------------------------------------------

<http://hl7.org/fhir/us/pacio-adi/Consent/Example-Smith-Johnson-HealthcareAgentConsent-Permit.ttl> a owl:Ontology ;
  owl:imports fhir:fhir.ttl ;
  owl:versionIRI <http://build.fhir.org/us/pacio-adi/Consent/Example-Smith-Johnson-HealthcareAgentConsent-Permit.ttl> .

# -------------------------------------------------------------------------------------

