@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 -------------------------------------------------------------------

<http://hl7.org/fhir/us/consent-management/Bundle/FASTSubscriptionNotification> a fhir:Bundle ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "FASTSubscriptionNotification"] ; # 
  fhir:type [ fhir:v "history"] ; # 
  fhir:timestamp [ fhir:v "2020-05-29T11:44:33.188-05:00"^^xsd:dateTime] ; # 
  fhir:entry ( [
     fhir:fullUrl [
       fhir:v "http://example.org/Parameters/FASTSubscriptionNotificationParameters"^^xsd:anyURI ;
       fhir:l <http://example.org/Parameters/FASTSubscriptionNotificationParameters>
     ] ;
     fhir:resource ( <http://example.org/Parameters/FASTSubscriptionNotificationParameters> ) ;
     fhir:request [
       fhir:method [ fhir:v "GET" ] ;
       fhir:url [
         fhir:v "https://example.org/Subscription/FAST/$status"^^xsd:anyURI ;
         fhir:l <https://example.org/Subscription/FAST/$status>
       ]
     ] ;
     fhir:response [
       fhir:status [ fhir:v "200" ]
     ]
  ] [
     fhir:fullUrl [
       fhir:v "http://example.org/Consent/ConsentExample"^^xsd:anyURI ;
       fhir:l <http://example.org/Consent/ConsentExample>
     ] ;
     fhir:resource ( <http://example.org/Consent/ConsentExample> ) ;
     fhir:request [
       fhir:method [ fhir:v "GET" ] ;
       fhir:url [
         fhir:v "https://example.org/Consent/ConsentExample"^^xsd:anyURI ;
         fhir:l <https://example.org/Consent/ConsentExample>
       ]
     ] ;
     fhir:response [
       fhir:status [ fhir:v "200" ]
     ]
  ] ) . # 

<http://example.org/Parameters/FASTSubscriptionNotificationParameters> a fhir:Parameters ;
  fhir:id [ fhir:v "FASTSubscriptionNotificationParameters"] ; # 
  fhir:parameter ( [
     fhir:name [ fhir:v "subscription" ] ;
     fhir:value [
       a fhir:Reference ;
       fhir:l <http://hl7.org/fhir/us/consent-management/Subscription/FASTPatientSubscriptionExample> ;
       fhir:reference [ fhir:v "Subscription/FASTPatientSubscriptionExample" ]
     ]
  ] [
     fhir:name [ fhir:v "topic" ] ;
     fhir:value [
       a fhir:Canonical ;
       fhir:v "http://hl7.org/fhir/us/consent-management/SubscriptionTopic/FASTConsentSubscriptionTopic|1.0.0"^^xsd:anyURI ;
       fhir:l <http://hl7.org/fhir/us/consent-management/SubscriptionTopic/FASTConsentSubscriptionTopic?version=1.0.0>
     ]
  ] [
     fhir:name [ fhir:v "type" ] ;
     fhir:value [
       a fhir:Code ;
       fhir:v "event-notification"
     ]
  ] [
     fhir:name [ fhir:v "notification-event" ] ;
     fhir:part ( [
       fhir:name [ fhir:v "event-number" ] ;
       fhir:value [
         a fhir:String ;
         fhir:v "2"
       ]
     ] [
       fhir:name [ fhir:v "timestamp" ] ;
       fhir:value [
         a fhir:Instant ;
         fhir:v "2020-05-29T11:44:33.188-05:00"^^xsd:dateTime
       ]
     ] [
       fhir:name [ fhir:v "focus" ] ;
       fhir:value [
         a fhir:Reference ;
         fhir:l <http://example.org/Bundle/ConsentExample> ;
         fhir:reference [ fhir:v "http://example.org/Bundle/ConsentExample" ]
       ]
     ] )
  ] ) . # 

<http://hl7.org/fhir/us/consent-management/Subscription/FASTPatientSubscriptionExample> a fhir:Us .

<http://example.org/Consent/ConsentExample> a fhir:Consent ;
  fhir:id [ fhir:v "ConsentExample"] ; # 
  fhir:meta [
     fhir:profile ( [
       fhir:v "http://hl7.org/fhir/us/consent-management/StructureDefinition/FASTConsent"^^xsd:anyURI ;
       fhir:l <http://hl7.org/fhir/us/consent-management/StructureDefinition/FASTConsent>
     ] )
  ] ; # 
  fhir:text [
     fhir:status [ fhir:v "extensions" ] ;
     fhir:div [ fhir:v "<div xmlns=\"http://www.w3.org/1999/xhtml\"><a name=\"Consent_ConsentExample\"> </a><p class=\"res-header-id\"><b>Generated Narrative: Consent ConsentExample</b></p><a name=\"ConsentExample\"> </a><a name=\"hcConsentExample\"> </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-FASTConsent.html\">FASTConsent</a></p></div><p><b>Extension Definition for Consent.grantee for Version 5.0</b>: Identifier: <a href=\"http://terminology.hl7.org/6.5.0/NamingSystem-npi.html\" title=\"National Provider Identifier\">United States National Provider Identifier</a>/1234567893</p><p><b>identifier</b>: <code>http://example.org/consent</code>/33445522</p><p><b>status</b>: Active</p><p><b>scope</b>: <span title=\"Codes:{http://terminology.hl7.org/CodeSystem/consentscope patient-privacy}\">Privacy Consent</span></p><p><b>category</b>: <span title=\"Codes:{http://terminology.hl7.org/CodeSystem/v3-ActCode INFA}\">information access</span></p><p><b>patient</b>: Identifier: <code>http://example.org/mrn</code>/M1230041</p><p><b>dateTime</b>: 2024-01-01</p><p><b>performer</b>: Identifier: <code>http://example.org/mrn</code>/M1230041</p><p><b>source</b>: <a href=\"QuestionnaireResponse-QuestionnaireResponseExample.html\">Response to Questionnaire 'http://example.org/fhir/Questionnaire/Simple-Consent-Form' about 'id: http://example.org/mrn#M1230041'</a></p><p><b>policyRule</b>: <span title=\"Codes:{http://terminology.hl7.org/CodeSystem/consentpolicycodes hipaa-auth}\">HIPAA Authorization</span></p><blockquote><p><b>provision</b></p><p><b>type</b>: Opt In</p><p><b>period</b>: 2024-01-01 --&gt; (ongoing)</p><h3>Actors</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Role</b></td><td><b>Reference</b></td></tr><tr><td style=\"display: none\">*</td><td><span title=\"Codes:{http://terminology.hl7.org/CodeSystem/v3-ParticipationType IRCP}\">information recipient</span></td><td>Identifier: <a href=\"http://terminology.hl7.org/6.5.0/NamingSystem-npi.html\" title=\"National Provider Identifier\">United States National Provider Identifier</a>/1234567893</td></tr></table></blockquote></div>"^^rdf:XMLLiteral ]
  ] ; # 
  fhir:extension ( [
     fhir:url [
       fhir:v "http://hl7.org/fhir/5.0/StructureDefinition/extension-Consent.grantee"^^xsd:anyURI ;
       fhir:l <http://hl7.org/fhir/5.0/StructureDefinition/extension-Consent.grantee>
     ] ;
     fhir:value [
       a fhir:Reference ;
       fhir:identifier [
         fhir:system [
           fhir:v "http://hl7.org/fhir/sid/us-npi"^^xsd:anyURI ;
           fhir:l <http://hl7.org/fhir/sid/us-npi>
         ] ;
         fhir:value [ fhir:v "1234567893" ]
       ]
     ]
  ] ) ; # 
  fhir:identifier ( [
     fhir:system [
       fhir:v "http://example.org/consent"^^xsd:anyURI ;
       fhir:l <http://example.org/consent>
     ] ;
     fhir:value [ fhir:v "33445522" ]
  ] ) ; # 
  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 ( [
       fhir:system [
         fhir:v "http://terminology.hl7.org/CodeSystem/v3-ActCode"^^xsd:anyURI ;
         fhir:l <http://terminology.hl7.org/CodeSystem/v3-ActCode>
       ] ;
       fhir:code [ fhir:v "INFA" ]
     ] )
  ] ) ; # 
  fhir:patient [
     fhir:identifier [
       fhir:system [
         fhir:v "http://example.org/mrn"^^xsd:anyURI ;
         fhir:l <http://example.org/mrn>
       ] ;
       fhir:value [ fhir:v "M1230041" ]
     ]
  ] ; # 
  fhir:dateTime [ fhir:v "2024-01-01"^^xsd:date] ; # 
  fhir:performer ( [
     fhir:identifier [
       fhir:system [
         fhir:v "http://example.org/mrn"^^xsd:anyURI ;
         fhir:l <http://example.org/mrn>
       ] ;
       fhir:value [ fhir:v "M1230041" ]
     ]
  ] ) ; # 
  fhir:source [
     a fhir:Reference ;
     fhir:l <http://hl7.org/fhir/us/consent-management/QuestionnaireResponse/QuestionnaireResponseExample> ;
     fhir:reference [ fhir:v "QuestionnaireResponse/QuestionnaireResponseExample" ]
  ] ; # 
  fhir:policyRule [
     fhir:coding ( [
       fhir:system [
         fhir:v "http://terminology.hl7.org/CodeSystem/consentpolicycodes"^^xsd:anyURI ;
         fhir:l <http://terminology.hl7.org/CodeSystem/consentpolicycodes>
       ] ;
       fhir:code [ fhir:v "hipaa-auth" ]
     ] )
  ] ; # 
  fhir:provision [
     fhir:type [ fhir:v "permit" ] ;
     fhir:period [
       fhir:start [ fhir:v "2024-01-01"^^xsd:date ]
     ] ;
     fhir:actor ( [
       fhir:role [
         fhir:coding ( [
           fhir:system [
             fhir:v "http://terminology.hl7.org/CodeSystem/v3-ParticipationType"^^xsd:anyURI ;
             fhir:l <http://terminology.hl7.org/CodeSystem/v3-ParticipationType>
           ] ;
           fhir:code [ fhir:v "IRCP" ]
         ] )
       ] ;
       fhir:reference [
         fhir:identifier [
           fhir:system [
             fhir:v "http://hl7.org/fhir/sid/us-npi"^^xsd:anyURI ;
             fhir:l <http://hl7.org/fhir/sid/us-npi>
           ] ;
           fhir:value [ fhir:v "1234567893" ]
         ]
       ]
     ] )
  ] . # 

<http://hl7.org/fhir/us/consent-management/QuestionnaireResponse/QuestionnaireResponseExample> a fhir:Us .

# -------------------------------------------------------------------------------------

