@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://gematik.de/fhir/tiflow-chargeitem/Bundle/ExampleERPCHRGConsentSearchset> a fhir:Bundle ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "ExampleERPCHRGConsentSearchset"] ; # 
  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.example.org/Consent?category=CHARGCONS"^^xsd:anyURI ;
       fhir:l <https://erp-ref.example.org/Consent?category=CHARGCONS>
     ]
  ] ) ; # 
  fhir:entry ( [
     fhir:fullUrl [
       fhir:v "https://erp-ref.example.org/Consent/ChargeItemConsent-Response"^^xsd:anyURI ;
       fhir:l <https://erp-ref.example.org/Consent/ChargeItemConsent-Response>
     ] ;
     fhir:resource ( <https://erp-ref.example.org/Consent/ChargeItemConsent-Response> ) ;
     fhir:search [
       fhir:mode [ fhir:v "match" ]
     ]
  ] ) . # 

<https://erp-ref.example.org/Consent/ChargeItemConsent-Response> a fhir:Consent ;
  fhir:id [ fhir:v "0dcc5d4c-bf24-4c06-b02e-be5bc24587e2"] ; # 
  fhir:meta [
     fhir:profile ( [
       fhir:v "https://gematik.de/fhir/erpchrg/StructureDefinition/GEM_ERPCHRG_PR_Consent"^^xsd:anyURI ;
       fhir:l <https://gematik.de/fhir/erpchrg/StructureDefinition/GEM_ERPCHRG_PR_Consent>
     ] )
  ] ; # 
  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 ( [
       fhir:system [
         fhir:v "https://gematik.de/fhir/erpchrg/CodeSystem/GEM_ERPCHRG_CS_ConsentType"^^xsd:anyURI ;
         fhir:l <https://gematik.de/fhir/erpchrg/CodeSystem/GEM_ERPCHRG_CS_ConsentType>
       ] ;
       fhir:code [ fhir:v "CHARGCONS" ] ;
       fhir:display [ fhir:v "Consent for saving electronic charge item" ]
     ] )
  ] ) ; # 
  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 "P987654321" ] ;
       fhir:assigner [
         fhir:identifier [
           fhir:system [
             fhir:v "http://fhir.de/sid/arge-ik/iknr"^^xsd:anyURI ;
             fhir:l <http://fhir.de/sid/arge-ik/iknr>
           ] ;
           fhir:value [ fhir:v "168140950" ]
         ]
       ]
     ]
  ] ; # 
  fhir:dateTime [ fhir:v "2028-10-01T15:29:00.434+00: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" ]
     ] )
  ] . # 

# -------------------------------------------------------------------------------------

