@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 sct: <http://snomed.info/id/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

# - resource -------------------------------------------------------------------

<http://hl7.eu/fhir/eps/Consent/b8c48ab1-24d7-4315-8502-dbae014fde57> a fhir:Consent ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:Resource.id [ fhir:value "b8c48ab1-24d7-4315-8502-dbae014fde57"] ;
  fhir:Resource.meta [
     fhir:Meta.profile [
       fhir:value "http://hl7.eu/fhir/eps/StructureDefinition/consent-eu-eps" ;
       fhir:index -1 ;
       fhir:link <http://hl7.eu/fhir/eps/StructureDefinition/consent-eu-eps>
     ]
  ] ;
  fhir:Resource.language [ fhir:value "en"] ;
  fhir:DomainResource.text [
     fhir:Narrative.status [ fhir:value "generated" ] ;
     fhir:Narrative.div "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p>Advance directive, <span class=\"nb\">2023-05-10</span>: do not resuscitate.</p></div>"
  ] ;
  fhir:Consent.status [ fhir:value "active"] ;
  fhir:Consent.scope [
     fhir:CodeableConcept.coding [
       fhir:index -1 ;
       fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/consentscope" ] ;
       fhir:Coding.code [ fhir:value "adr" ]
     ]
  ] ;
  fhir:Consent.category [
     fhir:index -1 ;
     fhir:CodeableConcept.coding [
       fhir:index -1 ;
       a loinc:75320-2 ;
       fhir:Coding.system [ fhir:value "http://loinc.org" ] ;
       fhir:Coding.code [ fhir:value "75320-2" ] ;
       fhir:Coding.display [ fhir:value "Advance directive" ]
     ]
  ] ;
  fhir:Consent.patient [
     fhir:Reference.reference [ fhir:value "urn:uuid:f51071b2-6c06-4d31-85ed-26a6b964ef98" ]
  ] ;
  fhir:Consent.dateTime [ fhir:value "2023-05-10"^^xsd:date] ;
  fhir:Consent.policy [
     fhir:index -1 ;
     fhir:Consent.policy.uri [ fhir:value "http://example.org/policies/advance-directives" ]
  ] ;
  fhir:Consent.provision [
     fhir:Consent.provision.type [ fhir:value "deny" ] ;
     fhir:Consent.provision.code [
       fhir:index -1 ;
       fhir:CodeableConcept.coding [
         fhir:index -1 ;
         a sct:89666000 ;
         fhir:Coding.system [ fhir:value "http://snomed.info/sct" ] ;
         fhir:Coding.code [ fhir:value "89666000" ] ;
         fhir:Coding.display [ fhir:value "Cardiopulmonary resuscitation" ]
       ]
     ]
  ] .

# - ontology header ------------------------------------------------------------

<http://hl7.eu/fhir/eps/Consent/b8c48ab1-24d7-4315-8502-dbae014fde57.ttl> a owl:Ontology ;
  owl:imports fhir:fhir.ttl .

# -------------------------------------------------------------------------------------

