@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://fhir.ch/ig/ch-core/Consent/PatPortalParticipation-accepted> a fhir:_Consent ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "PatPortalParticipation-accepted"] ; # 
  fhir:meta [
     fhir:profile ( [
       fhir:v "http://fhir.ch/ig/ch-core/StructureDefinition/CHCoreConsent"^^xsd:anyURI ;
       fhir:l <http://fhir.ch/ig/ch-core/StructureDefinition/CHCoreConsent>
     ] )
  ] ; # 
  fhir:text [
     fhir:status [ fhir:v "generated" ] ;
     fhir:div [ fhir:v "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p class=\"res-header-id\"><b>Generated Narrative: Consent PatPortalParticipation-accepted</b></p><a name=\"PatPortalParticipation-accepted\"> </a><a name=\"hcPatPortalParticipation-accepted\"> </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\"/><p style=\"margin-bottom: 0px\">Profile: <a href=\"StructureDefinition-CHCoreConsent.html\">CH Core Consent</a></p></div><h2>Participants</h2><table class=\"grid\"><tr><td><b>Role</b></td><td><b>Details</b></td></tr><tr><td title=\"Who the consent applies to\">Patient</td><td><a href=\"Patient-MaxMuster.html\">Max Muster (official) Male, DoB: 1938-12-12 ( Medical record number)</a></td></tr><tr><td title=\"Who is agreeing to the policy and rules\">Party</td><td>?rref?</td></tr></table><p>This consent is made under the policy <a href=\"https://example.org/patient-portal-policy\">https://example.org/patient-portal-policy</a> .</p><table border=\"1\" cellpadding=\"0\" cellspacing=\"0\" style=\"border: 1px #F0F0F0 solid; font-size: 11px; font-family: verdana; vertical-align: top;\"><tr style=\"border: 2px #F0F0F0 solid; font-size: 11px; font-family: verdana; vertical-align: top\"><th style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 1px #F0F0F0 solid; padding:0px 4px 0px 4px; padding-top: 3px; padding-bottom: 3px\" class=\"hierarchy\"><a href=\"https://hl7.org/fhir/R4/formats.html#table\" title=\"Applicable Rule\">Rule</a></th><th style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 1px #F0F0F0 solid; padding:0px 4px 0px 4px; padding-top: 3px; padding-bottom: 3px\" class=\"hierarchy\"><a href=\"https://hl7.org/fhir/R4/formats.html#table\" title=\"Applicable Period\">Time Period</a></th><th style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 1px #F0F0F0 solid; padding:0px 4px 0px 4px; padding-top: 3px; padding-bottom: 3px\" class=\"hierarchy\"><a href=\"https://hl7.org/fhir/R4/formats.html#table\" title=\"Applicable Data\">What</a></th><th style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 1px #F0F0F0 solid; padding:0px 4px 0px 4px; padding-top: 3px; padding-bottom: 3px\" class=\"hierarchy\"><a href=\"https://hl7.org/fhir/R4/formats.html#table\" title=\"Other Applicable Rules\">Rules</a><span style=\"float: right\"><a href=\"https://hl7.org/fhir/R4/formats.html#table\" title=\"Legend for this format\"><img src=\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3goXBCwdPqAP0wAAAldJREFUOMuNk0tIlFEYhp9z/vE2jHkhxXA0zJCMitrUQlq4lnSltEqCFhFG2MJFhIvIFpkEWaTQqjaWZRkp0g26URZkTpbaaOJkDqk10szoODP//7XIMUe0elcfnPd9zsfLOYplGrpRwZaqTtw3K7PtGem7Q6FoidbGgqHVy/HRb669R+56zx7eRV1L31JGxYbBtjKK93cxeqfyQHbehkZbUkK20goELEuIzEd+dHS+qz/Y8PTSif0FnGkbiwcAjHaU1+QWOptFiyCLp/LnKptpqIuXHx6rbR26kJcBX3yLgBfnd7CxwJmflpP2wUg0HIAoUUpZBmKzELGWcN8nAr6Gpu7tLU/CkwAaoKTWRSQyt89Q8w6J+oVQkKnBoblH7V0PPvUOvDYXfopE/SJmALsxnVm6LbkotrUtNowMeIrVrBcBpaMmdS0j9df7abpSuy7HWehwJdt1lhVwi/J58U5beXGAF6c3UXLycw1wdFklArBn87xdh0ZsZtArghBdAA3+OEDVubG4UEzP6x1FOWneHh2VDAHBAt80IbdXDcesNoCvs3E5AFyNSU5nbrDPZpcUEQQTFZiEVx+51fxMhhyJEAgvlriadIJZZksRuwBYMOPBbO3hePVVqgEJhFeUuFLhIPkRP6BQLIBrmMenujm/3g4zc398awIe90Zb5A1vREALqneMcYgP/xVQWlG+Ncu5vgwwlaUNx+3799rfe96u9K0JSDXcOzOTJg4B6IgmXfsygc7/Bvg9g9E58/cDVmGIBOP/zT8Bz1zqWqpbXIsd0O9hajXfL6u4BaOS6SeWAAAAAElFTkSuQmCC\" alt=\"doco\" style=\"background-color: inherit\"/></a></span></th></tr><tr style=\"border: 1px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white\"><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 1px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck1.png)\" class=\"hierarchy\"><img src=\"tbl_spacer.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"icon_extension.png\" alt=\".\" style=\"background-color: white; background-color: inherit\" title=\"Consent Provision\" class=\"hierarchy\"/> permit</td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 1px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"></td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 1px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"></td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 1px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"></td></tr>#xD;\n<tr style=\"border: 1px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7\"><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 1px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck00.png)\" class=\"hierarchy\"><img src=\"tbl_spacer.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vjoin_end.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"icon-qi-hidden.png\" alt=\".\" style=\"background-color: #F7F7F7; background-color: inherit\" title=\"Consent Provision\" class=\"hierarchy\"/> deny</td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 1px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><ul><li>Period: 2025-03-17 --&gt; (ongoing)</li></ul></td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 1px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><ul><li>Purpose: <a href=\"http://hl7.org/fhir/R4/v3/ActReason/cs.html#v3-ActReason-PATADMIN\">v3 Code System ActReason: PATADMIN</a> (patient administration)</li><li>Code: <span title=\"Codes:{http://fhir.ch/ig/ch-core/CodeSystem/ConsentProvisionCodesCS PATPORTAL}\">Patient Portal</span></li></ul></td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 1px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"></td></tr>#xD;\n<tr><td colspan=\"4\" class=\"hierarchy\"><br/><a href=\"https://hl7.org/fhir/R4/formats.html#table\" title=\"Legend for this format\"><img src=\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3goXBCwdPqAP0wAAAldJREFUOMuNk0tIlFEYhp9z/vE2jHkhxXA0zJCMitrUQlq4lnSltEqCFhFG2MJFhIvIFpkEWaTQqjaWZRkp0g26URZkTpbaaOJkDqk10szoODP//7XIMUe0elcfnPd9zsfLOYplGrpRwZaqTtw3K7PtGem7Q6FoidbGgqHVy/HRb669R+56zx7eRV1L31JGxYbBtjKK93cxeqfyQHbehkZbUkK20goELEuIzEd+dHS+qz/Y8PTSif0FnGkbiwcAjHaU1+QWOptFiyCLp/LnKptpqIuXHx6rbR26kJcBX3yLgBfnd7CxwJmflpP2wUg0HIAoUUpZBmKzELGWcN8nAr6Gpu7tLU/CkwAaoKTWRSQyt89Q8w6J+oVQkKnBoblH7V0PPvUOvDYXfopE/SJmALsxnVm6LbkotrUtNowMeIrVrBcBpaMmdS0j9df7abpSuy7HWehwJdt1lhVwi/J58U5beXGAF6c3UXLycw1wdFklArBn87xdh0ZsZtArghBdAA3+OEDVubG4UEzP6x1FOWneHh2VDAHBAt80IbdXDcesNoCvs3E5AFyNSU5nbrDPZpcUEQQTFZiEVx+51fxMhhyJEAgvlriadIJZZksRuwBYMOPBbO3hePVVqgEJhFeUuFLhIPkRP6BQLIBrmMenujm/3g4zc398awIe90Zb5A1vREALqneMcYgP/xVQWlG+Ncu5vgwwlaUNx+3799rfe96u9K0JSDXcOzOTJg4B6IgmXfsygc7/Bvg9g9E58/cDVmGIBOP/zT8Bz1zqWqpbXIsd0O9hajXfL6u4BaOS6SeWAAAAAElFTkSuQmCC\" alt=\"doco\" style=\"background-color: inherit\"/> Documentation for this format</a></td></tr></table></div>"^^rdf:XMLLiteral ]
  ] ; # 
  fhir:extension ( [
     fhir:url [
       fhir:v "http://hl7.org/fhir/5.0/StructureDefinition/extension-Consent.grantor"^^xsd:anyURI ;
       fhir:l <http://hl7.org/fhir/5.0/StructureDefinition/extension-Consent.grantor>
     ] ;
     fhir:value [
       a fhir:Reference ;
       fhir:l <http://fhir.ch/ig/ch-core/Patient/MaxMuster> ;
       fhir:reference [ fhir:v "Patient/MaxMuster" ] ;
       fhir:type [
         fhir:v "Patient"^^xsd:anyURI ;
         fhir:l fhir:Patient
       ] ;
       fhir:identifier [
         fhir:system [
           fhir:v "urn:oid:2.999.1.2.3.4"^^xsd:anyURI ;
           fhir:l <urn:oid:2.999.1.2.3.4>
         ] ;
         fhir:value [ fhir:v "8733" ]
       ]
     ]
  ] [
     fhir:url [
       fhir:v "http://hl7.org/fhir/5.0/StructureDefinition/extension-Consent.manager"^^xsd:anyURI ;
       fhir:l <http://hl7.org/fhir/5.0/StructureDefinition/extension-Consent.manager>
     ] ;
     fhir:value [
       a fhir:Reference ;
       fhir:l <http://fhir.ch/ig/ch-core/HealthcareService/healthcareService-DemoPatientPortal> ;
       fhir:reference [ fhir:v "HealthcareService/healthcareService-DemoPatientPortal" ] ;
       fhir:type [
         fhir:v "HealthcareService"^^xsd:anyURI ;
         fhir:l fhir:HealthcareService
       ] ;
       fhir:identifier [
         fhir:system [
           fhir:v "urn:oid:2.16.756.5.30.1"^^xsd:anyURI ;
           fhir:l <urn:oid:2.16.756.5.30.1>
         ] ;
         fhir:value [ fhir:v "DemoPatientPortal" ]
       ] ;
       fhir:display [ fhir:v "DemoPatientPortal" ]
     ]
  ] [
     fhir:url [
       fhir:v "http://hl7.org/fhir/5.0/StructureDefinition/extension-Consent.controller"^^xsd:anyURI ;
       fhir:l <http://hl7.org/fhir/5.0/StructureDefinition/extension-Consent.controller>
     ] ;
     fhir:value [
       a fhir:Reference ;
       fhir:l <http://fhir.ch/ig/ch-core/Organization/SpitalSeeblick> ;
       fhir:reference [ fhir:v "Organization/SpitalSeeblick" ] ;
       fhir:type [
         fhir:v "Organization"^^xsd:anyURI ;
         fhir:l fhir:Organization
       ] ;
       fhir:identifier [
         fhir:system [
           fhir:v "urn:oid:2.51.1.3"^^xsd:anyURI ;
           fhir:l <urn:oid:2.51.1.3>
         ] ;
         fhir:value [ fhir:v "7601000618306" ]
       ] ;
       fhir:display [ fhir:v "SpitalSeeblick" ]
     ]
  ] ) ; # 
  fhir:modifierExtension ( [
     fhir:url [
       fhir:v "http://hl7.org/fhir/5.0/StructureDefinition/extension-Consent.decision"^^xsd:anyURI ;
       fhir:l <http://hl7.org/fhir/5.0/StructureDefinition/extension-Consent.decision>
     ] ;
     fhir:value [
       a fhir:Code ;
       fhir:v "deny"
     ]
  ] ) ; # 
  fhir:status [ fhir:v "active"] ; # 
  fhir:scope [
     fhir:coding ( [
       fhir:system [
         fhir:v "http://terminology.hl7.org/CodeSystem/consentscope"^^xsd:anyURI ;
         fhir:l <http://terminology.hl7.org/CodeSystem/consentscope>
       ] ;
       fhir:code [ fhir:v "patient-privacy" ]
     ] )
  ] ; # 
  fhir:category ( [
     fhir:coding ( [
       a loinc:64292-6 ;
       fhir:system [
         fhir:v "http://loinc.org"^^xsd:anyURI ;
         fhir:l <http://loinc.org>
       ] ;
       fhir:code [ fhir:v "64292-6" ]
     ] )
  ] ) ; # 
  fhir:patient [
     fhir:l <http://fhir.ch/ig/ch-core/Patient/MaxMuster> ;
     fhir:reference [ fhir:v "Patient/MaxMuster" ]
  ] ; # 
  fhir:dateTime [ fhir:v "2025-03-17"^^xsd:date] ; # 
  fhir:performer ( [
     fhir:extension ( [
       fhir:url [
         fhir:v "http://hl7.org/fhir/StructureDefinition/alternate-reference"^^xsd:anyURI ;
         fhir:l <http://hl7.org/fhir/StructureDefinition/alternate-reference>
       ] ;
       fhir:value [
         a fhir:Reference ;
         fhir:l <http://fhir.ch/ig/ch-core/HealthcareService/healthcareService-DemoPatientPortal> ;
         fhir:reference [ fhir:v "HealthcareService/healthcareService-DemoPatientPortal" ] ;
         fhir:type [
           fhir:v "HealthcareService"^^xsd:anyURI ;
           fhir:l fhir:HealthcareService
         ] ;
         fhir:identifier [
           fhir:system [
             fhir:v "urn:oid:2.16.756.5.30.1"^^xsd:anyURI ;
             fhir:l <urn:oid:2.16.756.5.30.1>
           ] ;
           fhir:value [ fhir:v "DemoPatientPortal" ]
         ] ;
         fhir:display [ fhir:v "DemoPatientPortal" ]
       ]
     ] )
  ] ) ; # 
  fhir:policy ( [
     fhir:uri [
       fhir:v "https://example.org/patient-portal-policy"^^xsd:anyURI ;
       fhir:l <https://example.org/patient-portal-policy>
     ]
  ] ) ; # 
  fhir:provision [
     fhir:period [
       fhir:start [ fhir:v "2025-03-17"^^xsd:date ]
     ] ;
     fhir:purpose ( [
       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 "PATADMIN" ]
     ] ) ;
     fhir:code ( [
       fhir:coding ( [
         fhir:system [
           fhir:v "http://fhir.ch/ig/ch-core/CodeSystem/ConsentProvisionCodesCS"^^xsd:anyURI ;
           fhir:l <http://fhir.ch/ig/ch-core/CodeSystem/ConsentProvisionCodesCS>
         ] ;
         fhir:code [ fhir:v "PATPORTAL" ]
       ] )
     ] )
  ] . # 

# -------------------------------------------------------------------------------------

