@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/us/consent-management/Parameters/FileConsentDocRefExample> a fhir:Parameters ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "FileConsentDocRefExample"] ; # 
  fhir:meta [
     fhir:profile ( [
       fhir:v "http://hl7.org/fhir/us/consent-management/StructureDefinition/FileConsentParameters"^^xsd:anyURI ;
       fhir:l <http://hl7.org/fhir/us/consent-management/StructureDefinition/FileConsentParameters>
     ] )
  ] ; # 
  fhir:language [ fhir:v "en"] ; # 
  fhir:parameter ( [
     fhir:name [ fhir:v "consent" ] ;
     fhir:Parameters.parameter.resource ( [
       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:language [ fhir:v "en" ] ;
       fhir:extension ( [
         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: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:policy ( [
         fhir:uri [
           fhir:v "hipaa-auth"^^xsd:anyURI ;
           fhir:l fhir: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" ]
             ]
           ]
         ] )
       ]
     ] )
  ] [
     fhir:name [ fhir:v "document" ] ;
     fhir:Parameters.parameter.resource ( [
       a fhir:DocumentReference ;
       fhir:id [ fhir:v "DocumentReferenceExample" ] ;
       fhir:meta [
         fhir:profile ( [
           fhir:v "http://hl7.org/fhir/us/consent-management/StructureDefinition/FASTDocumentReference"^^xsd:anyURI ;
           fhir:l <http://hl7.org/fhir/us/consent-management/StructureDefinition/FASTDocumentReference>
         ] )
       ] ;
       fhir:language [ fhir:v "en" ] ;
       fhir:identifier ( [
         fhir:system [
           fhir:v "http://example.org"^^xsd:anyURI ;
           fhir:l <http://example.org>
         ] ;
         fhir:value [ fhir:v "1234567" ]
       ] ) ;
       fhir:status [ fhir:v "current" ] ;
       fhir:type [
         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:category ( [
         fhir:coding ( [
           a loinc:57016-8 ;
           fhir:system [
             fhir:v "http://loinc.org"^^xsd:anyURI ;
             fhir:l <http://loinc.org>
           ] ;
           fhir:code [ fhir:v "57016-8" ]
         ] )
       ] ) ;
       fhir:subject [
         fhir:identifier [
           fhir:system [
             fhir:v "http://example.org/mrn"^^xsd:anyURI ;
             fhir:l <http://example.org/mrn>
           ] ;
           fhir:value [ fhir:v "M1230041" ]
         ]
       ] ;
       fhir:date [ fhir:v "2024-01-01T15:30:00Z"^^xsd:dateTime ] ;
       fhir:author ( [
         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:content ( [
         fhir:attachment [
           fhir:contentType [ fhir:v "application/pdf" ] ;
           fhir:url [
             fhir:v "http://example.org/consentexample"^^xsd:anyURI ;
             fhir:l <http://example.org/consentexample>
           ]
         ]
       ] )
     ] )
  ] ) . # 

<http://hl7.org/fhir/us/consent-management/QuestionnaireResponse/QuestionnaireResponseExample> a fhir:Us .

# -------------------------------------------------------------------------------------

