@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/uv/dap/Consent/ex-consent-permission> a fhir:Consent ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "ex-consent-permission"] ; # 
  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:language [ fhir:v "en"] ; # 
  fhir:text [
     fhir:status [ fhir:v "generated" ] ;
     fhir:div [ fhir:v "<div xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"en\" lang=\"en\"><p class=\"res-header-id\"><b>Generated Narrative: Consent ex-consent-permission</b></p><a name=\"ex-consent-permission\"> </a><a name=\"hcex-consent-permission\"> </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\">Language: en</p><p style=\"margin-bottom: 0px\">Security Label: test health data (Details: ActReason code HTEST = 'test health data')</p></div><p><b>status</b>: Active</p><p><b>category</b>: <span title=\"Codes:{http://loinc.org 59284-0}\">Consent Document</span></p><p><b>subject</b>: <a href=\"Patient-ex-patient.html\">John Schmidt  Other, DoB: 1923-07-25</a></p><p><b>date</b>: 2022-06-13</p><p><b>grantor</b>: <a href=\"Patient-ex-patient.html\">John Schmidt  Other, DoB: 1923-07-25</a></p><h3>PolicyBases</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Reference</b></td></tr><tr><td style=\"display: none\">*</td><td><a href=\"Permission-ex-overriding-abac-by-tag.html\">Permission: status = active; date = 2023-12-22; combining = permit-overrides</a></td></tr></table><p><b>decision</b>: Permit</p><p><b>provisionReference</b>: <a href=\"Permission-ex-permission-intermediate-not-authoredby.html\">Permission: status = active; date = 2022-06-13; combining = deny-overrides</a></p></div>"^^rdf:XMLLiteral ]
  ] ; # 
  fhir:status [ fhir:v "active"] ; # 
  fhir:category ( [
     fhir:coding ( [
       a loinc:59284-0 ;
       fhir:system [
         fhir:v "http://loinc.org"^^xsd:anyURI ;
         fhir:l <http://loinc.org>
       ] ;
       fhir:code [ fhir:v "59284-0" ] ;
       fhir:display [ fhir:v "Consent Document" ]
     ] )
  ] ) ; # 
  fhir:subject [
     fhir:l <http://hl7.org/fhir/uv/dap/Patient/ex-patient> ;
     fhir:reference [ fhir:v "Patient/ex-patient" ]
  ] ; # 
  fhir:date [ fhir:v "2022-06-13"^^xsd:date] ; # 
  fhir:grantor ( [
     fhir:l <http://hl7.org/fhir/uv/dap/Patient/ex-patient> ;
     fhir:reference [ fhir:v "Patient/ex-patient" ]
  ] ) ; # 
  fhir:policyBasis [
     fhir:reference [
       fhir:l <http://hl7.org/fhir/uv/dap/Permission/ex-overriding-abac-by-tag> ;
       fhir:reference [ fhir:v "Permission/ex-overriding-abac-by-tag" ]
     ]
  ] ; # 
  fhir:decision [ fhir:v "permit"] ; # 
  fhir:provisionReference ( [
     fhir:l <http://hl7.org/fhir/uv/dap/Permission/ex-permission-intermediate-not-authoredby> ;
     fhir:reference [ fhir:v "Permission/ex-permission-intermediate-not-authoredby" ]
  ] ) . # 

<http://hl7.org/fhir/uv/dap/Patient/ex-patient> a fhir:Uv .

<http://hl7.org/fhir/uv/dap/Permission/ex-overriding-abac-by-tag> a fhir:Uv .

<http://hl7.org/fhir/uv/dap/Permission/ex-permission-intermediate-not-authoredby> a fhir:Uv .

# -------------------------------------------------------------------------------------

