@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 -------------------------------------------------------------------

<https://gematik.de/fhir/tiflow-erezept/Bundle/example-searchset-consent> a fhir:Bundle ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "example-searchset-consent"] ; # 
  fhir:type [ fhir:v "searchset"] ; # 
  fhir:total [ fhir:v "1"^^xsd:nonNegativeInteger] ; # 
  fhir:link ( [
     fhir:relation [ fhir:v "self" ] ;
     fhir:url [
       fhir:v "https://erp-ref.zentral.erp.splitdns.ti-dienste.de/Consent?category=CHARGCONS"^^xsd:anyURI ;
       fhir:l <https://erp-ref.zentral.erp.splitdns.ti-dienste.de/Consent?category=CHARGCONS>
     ]
  ] ) ; # 
  fhir:entry ( [
     fhir:fullUrl [
       fhir:v "https://erp-ref.zentral.erp.splitdns.ti-dienste.de/Consent/QueryConsentCHARGCONS"^^xsd:anyURI ;
       fhir:l <https://erp-ref.zentral.erp.splitdns.ti-dienste.de/Consent/QueryConsentCHARGCONS>
     ] ;
     fhir:resource ( <https://erp-ref.zentral.erp.splitdns.ti-dienste.de/Consent/QueryConsentCHARGCONS> )
  ] ) . # 

<https://erp-ref.zentral.erp.splitdns.ti-dienste.de/Consent/QueryConsentCHARGCONS> a fhir:Consent ;
  fhir:id [ fhir:v "QueryConsentCHARGCONS"] ; # 
  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:display [ fhir:v "Privacy Consent" ]
     ] )
  ] ; # 
  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:patient [
     fhir:identifier [
       fhir:system [
         fhir:v "http://fhir.de/sid/gkv/kvid-10"^^xsd:anyURI ;
         fhir:l <http://fhir.de/sid/gkv/kvid-10>
       ] ;
       fhir:value [ fhir:v "X123456789" ]
     ]
  ] ; # 
  fhir:dateTime [ fhir:v "2025-01-15T10:15:00+01:00"^^xsd:dateTime] ; # 
  fhir:policyRule [
     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 "OPTIN" ]
     ] )
  ] . # 

# -------------------------------------------------------------------------------------

