@prefix fhir: <http://hl7.org/fhir/> .
@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 -------------------------------------------------------------------

<https://fhir.apps.health/Consent/avery-research-consent-proposed> a fhir:Consent ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "avery-research-consent-proposed"] ; # 
  fhir:meta [
     fhir:profile ( [
       fhir:v "https://fhir.apps.health/StructureDefinition/polaris-core-app-consent"^^xsd:anyURI ;
       fhir:link <https://fhir.apps.health/StructureDefinition/polaris-core-app-consent>
     ] )
  ] ; # 
  fhir:text [
     fhir:status [ fhir:v "generated" ] ;
     fhir:div "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p><b>Proposed App Consent</b></p><p>Patient: <strong>Avery Linwood</strong> - <strong>MORE INFORMATION REQUESTED</strong> regarding data sharing with <strong>Alberta Diabetes Research Portal</strong>.</p><p>Date: April 8, 2025 at 2:15 PM</p><p>Status: Awaiting patient decision after reviewing research study details.</p></div>"^^rdf:XMLLiteral
  ] ; # 
  fhir:identifier ( [
     fhir:system [ fhir:v "https://fhir.apps.health/NamingSystem/cedarbrook-clinic-app-consent-identifier"^^xsd:anyURI ] ;
     fhir:value [ fhir:v "app-consent-research-avery-proposed-20250408" ]
  ] ) ; # 
  fhir:status [ fhir:v "proposed"] ; # 
  fhir:scope [
     fhir:coding ( [
       fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/consentscope"^^xsd:anyURI ] ;
       fhir:code [ fhir:v "patient-privacy" ] ;
       fhir:display [ fhir:v "Privacy Consent" ]
     ] )
  ] ; # 
  fhir:category ( [
     fhir:coding ( [
       fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/consentcategorycodes"^^xsd:anyURI ] ;
       fhir:code [ fhir:v "infa" ] ;
       fhir:display [ fhir:v "Information Access" ]
     ] )
  ] ) ; # 
  fhir:patient [
     fhir:identifier [
       fhir:system [ fhir:v "https://fhir.apps.health/NamingSystem/cedarbrook-clinic-patient-identifier"^^xsd:anyURI ] ;
       fhir:value [ fhir:v "1234567890" ]
     ] ;
     fhir:display [ fhir:v "Avery Linwood" ]
  ] ; # 
  fhir:dateTime [ fhir:v "2025-04-08T14:15:00-06:00"^^xsd:dateTime] ; # 
  fhir:policyRule [
     fhir:coding ( [
       fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/consentpolicycodes"^^xsd:anyURI ] ;
       fhir:code [ fhir:v "cric" ] ;
       fhir:display [ fhir:v "Common Rule Informed Consent" ]
     ] )
  ] ; # 
  fhir:provision [
     fhir:actor ( [
       fhir:role [
         fhir:coding ( [
           fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/v3-ParticipationType"^^xsd:anyURI ] ;
           fhir:code [ fhir:v "IRCP" ] ;
           fhir:display [ fhir:v "information recipient" ]
         ] )
       ] ;
       fhir:reference [
         fhir:identifier [
           fhir:system [ fhir:v "https://fhir.apps.health/NamingSystem/polaris-appdevice-identifier"^^xsd:anyURI ] ;
           fhir:value [ fhir:v "diabetes-research-portal" ]
         ] ;
         fhir:display [ fhir:v "Alberta Diabetes Research Portal" ]
       ]
     ] )
  ] . # 

# -------------------------------------------------------------------------------------

