@prefix fhir: <http://hl7.org/fhir/> .
@prefix loinc: <https://loinc.org/rdf/> .
@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://hl7.org/fhir/us/pacio-adi/Consent/Example-Smith-Johnson-HealthcareAgentConsent-Deny> a fhir:Consent ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "Example-Smith-Johnson-HealthcareAgentConsent-Deny"] ; # 
  fhir:meta [
     fhir:profile ( [
       fhir:v "http://hl7.org/fhir/us/pacio-adi/StructureDefinition/ADI-ADIConsentDeny"^^xsd:anyURI ;
       fhir:link <http://hl7.org/fhir/us/pacio-adi/StructureDefinition/ADI-ADIConsentDeny>
     ] )
  ] ; # 
  fhir:text [
     fhir:status [ fhir:v "additional" ] ;
     fhir:div "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p>I am consenting for my son Charles to be my primary healthcare agent and I am denying him to make decisions on my behalf about nutrition.</p></div>"^^rdf:XMLLiteral
  ] ; # 
  fhir:status [ fhir:v "active"] ; # 
  fhir:scope [
     fhir:coding ( [
       a loinc:81377-4 ;
       fhir:system [ fhir:v "http://loinc.org"^^xsd:anyURI ] ;
       fhir:code [ fhir:v "81377-4" ] ;
       fhir:display [ fhir:v "Goals, preferences, and priorities regarding the appointment of healthcare agents Narrative - Reported" ]
     ] )
  ] ; # 
  fhir:category ( [
     fhir:coding ( [
       fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/consentcategorycodes"^^xsd:anyURI ] ;
       fhir:version [ fhir:v "1.0.0" ] ;
       fhir:code [ fhir:v "acd" ]
     ] )
  ] ) ; # 
  fhir:patient [
     fhir:link <http://hl7.org/fhir/us/pacio-adi/Patient/Example-Smith-Johnson-Patient1> ;
     fhir:reference [ fhir:v "Patient/Example-Smith-Johnson-Patient1" ]
  ] ; # 
  fhir:policy ( [
     fhir:uri [ fhir:v "http://example.org/healthcare-agent-policy"^^xsd:anyURI ]
  ] ) ; # 
  fhir:provision [
     fhir:type [ fhir:v "deny" ] ;
     fhir:actor ( [
       fhir:role [
         fhir:coding ( [
           a loinc:75783-1 ;
           fhir:system [ fhir:v "http://loinc.org"^^xsd:anyURI ] ;
           fhir:code [ fhir:v "75783-1" ] ;
           fhir:display [ fhir:v "Primary healthcare agent [Reported]" ]
         ] )
       ] ;
       fhir:reference [
         fhir:link <http://hl7.org/fhir/us/pacio-adi/RelatedPerson/Example-Smith-Johnson-HealthcareAgent1> ;
         fhir:reference [ fhir:v "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 .

# -------------------------------------------------------------------------------------

