@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/epa-medication/Parameters/example-epa-op-provide-dispensation-erp-input-parameters-3> a fhir:Parameters ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "example-epa-op-provide-dispensation-erp-input-parameters-3"] ; # 
  fhir:meta [
     fhir:profile ( [
       fhir:v "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-erp-input-parameters"^^xsd:anyURI ;
       fhir:link <https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-erp-input-parameters>
     ] )
  ] ; # 
  fhir:parameter ( [
     fhir:name [ fhir:v "rxDispensation" ] ;
     fhir:part ( [
       fhir:name [ fhir:v "prescriptionId" ] ;
       fhir:value [
         a fhir:Identifier ;
         fhir:system [ fhir:v "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"^^xsd:anyURI ] ;
         fhir:value [ fhir:v "160.100.000.000.006.24" ]
       ]
     ] [
       fhir:name [ fhir:v "authoredOn" ] ;
       fhir:value [
         a fhir:date ;
         fhir:v "2025-05-20"^^xsd:date
       ]
     ] [
       fhir:name [ fhir:v "medicationDispense" ] ;
       fhir:Parameters.parameter.resource ( [
         a fhir:MedicationDispense ;
         fhir:id [ fhir:v "5d8fbf7c-bdb0-44c2-95fe-423ae0404ccd" ] ;
         fhir:meta [
           fhir:profile ( [
             fhir:v "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense"^^xsd:anyURI ;
             fhir:link <https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense>
           ] )
         ] ;
         fhir:status [ fhir:v "completed" ] ;
         fhir:medication [
           a fhir:Reference ;
           fhir:link <https://gematik.de/fhir/epa-medication/Medication/ec4d55a0-dec1-46b7-96cc-096845b74c4b> ;
           fhir:reference [ fhir:v "Medication/ec4d55a0-dec1-46b7-96cc-096845b74c4b" ]
         ] ;
         fhir:subject [
           fhir:identifier [
             fhir:system [ fhir:v "http://fhir.de/sid/gkv/kvid-10"^^xsd:anyURI ] ;
             fhir:value [ fhir:v "X110411319" ]
           ]
         ] ;
         fhir:performer ( [
           fhir:actor [
             fhir:link <https://gematik.de/fhir/epa-medication/Organization/ccc03731-4c38-4b48-bd41-583766b796c6> ;
             fhir:reference [ fhir:v "Organization/ccc03731-4c38-4b48-bd41-583766b796c6" ] ;
             fhir:identifier [
               fhir:type [
                 fhir:coding ( [
                   fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/v2-0203"^^xsd:anyURI ] ;
                   fhir:version [ fhir:v "2.9.0" ] ;
                   fhir:code [ fhir:v "PRN" ] ;
                   fhir:display [ fhir:v "Provider number" ]
                 ] )
               ] ;
               fhir:system [ fhir:v "https://gematik.de/fhir/sid/telematik-id"^^xsd:anyURI ] ;
               fhir:value [ fhir:v "9-2.58.00000023" ]
             ] ;
             fhir:display [ fhir:v "gematik Apotheke" ]
           ]
         ] ) ;
         fhir:whenHandedOver [ fhir:v "2025-05-22"^^xsd:date ] ;
         fhir:substitution [
           fhir:wasSubstituted [ fhir:v false ]
         ]
       ] )
     ] [
       fhir:name [ fhir:v "medication" ] ;
       fhir:Parameters.parameter.resource ( [
         a fhir:Medication ;
         fhir:id [ fhir:v "ec4d55a0-dec1-46b7-96cc-096845b74c4b" ] ;
         fhir:meta [
           fhir:profile ( [
             fhir:v "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"^^xsd:anyURI ;
             fhir:link <https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication>
           ] )
         ] ;
         fhir:extension ( [
           fhir:url [ fhir:v "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"^^xsd:anyURI ] ;
           fhir:value [
             a fhir:Coding ;
             fhir:system [ fhir:v "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"^^xsd:anyURI ] ;
             fhir:code [ fhir:v "00" ]
           ]
         ] [
           fhir:url [ fhir:v "http://fhir.de/StructureDefinition/normgroesse"^^xsd:anyURI ] ;
           fhir:value [
             a fhir:code ;
             fhir:v "N1"
           ]
         ] [
           fhir:url [ fhir:v "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"^^xsd:anyURI ] ;
           fhir:value [
             a fhir:boolean ;
             fhir:v false
           ]
         ] ) ;
         fhir:code [
           fhir:coding ( [
             fhir:system [ fhir:v "http://fhir.de/CodeSystem/ifa/pzn"^^xsd:anyURI ] ;
             fhir:code [ fhir:v "00814665" ]
           ] ) ;
           fhir:text [ fhir:v "Januvia® 50 mg 28 Filmtabletten N1" ]
         ] ;
         fhir:status [ fhir:v "active" ] ;
         fhir:form [
           fhir:coding ( [
             fhir:system [ fhir:v "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"^^xsd:anyURI ] ;
             fhir:code [ fhir:v "FTA" ] ;
             fhir:display [ fhir:v "Tabletten" ]
           ] )
         ]
       ] )
     ] [
       fhir:name [ fhir:v "organization" ] ;
       fhir:Parameters.parameter.resource ( [
         a fhir:Organization ;
         fhir:id [ fhir:v "ccc03731-4c38-4b48-bd41-583766b796c6" ] ;
         fhir:meta [
           fhir:profile ( [
             fhir:v "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"^^xsd:anyURI ;
             fhir:link <https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory>
           ] ) ;
           fhir:tag ( [
             fhir:system [ fhir:v "https://gematik.de/fhir/directory/CodeSystem/Origin"^^xsd:anyURI ] ;
             fhir:code [ fhir:v "ldap" ]
           ] )
         ] ;
         fhir:identifier ( [
           fhir:system [ fhir:v "https://gematik.de/fhir/sid/telematik-id"^^xsd:anyURI ] ;
           fhir:value [ fhir:v "9-2.58.00000023" ]
         ] ) ;
         fhir:active [ fhir:v true ] ;
         fhir:type ( [
           fhir:coding ( [
             fhir:system [ fhir:v "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"^^xsd:anyURI ] ;
             fhir:code [ fhir:v "1.2.276.0.76.4.54" ] ;
             fhir:display [ fhir:v "Öffentliche Apotheke" ]
           ] )
         ] ) ;
         fhir:name [ fhir:v "gematik Apotheke" ] ;
         fhir:alias ( [ fhir:v "Apotheke" ] ) ;
         fhir:address ( [
           fhir:text [ fhir:v "gematik Apotheke\nFriedrichstr. 136,\n10117 Berlin" ] ;
           fhir:line ( [ fhir:v "Friedrichstr. 136" ] ) ;
           fhir:city [ fhir:v "Berlin" ] ;
           fhir:district [ fhir:v "Mitte" ] ;
           fhir:state [ fhir:v "Berlin" ] ;
           fhir:postalCode [ fhir:v "10117" ] ;
           fhir:country [ fhir:v "DE" ]
         ] ) ;
         fhir:contact ( [
           fhir:purpose [
             fhir:coding ( [
               fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/contactentity-type"^^xsd:anyURI ] ;
               fhir:code [ fhir:v "ADMIN" ]
             ] )
           ] ;
           fhir:name [
             fhir:text [ fhir:v "gematik ITSM" ]
           ] ;
           fhir:telecom ( [
             fhir:system [ fhir:v "email" ] ;
             fhir:value [ fhir:v "betrieb@gematik.de" ]
           ] )
         ] )
       ] )
     ] [
       fhir:name [ fhir:v "status" ] ;
       fhir:value [
         a fhir:code ;
         fhir:v "in-progress"
       ]
     ] )
  ] ) . # 

# -------------------------------------------------------------------------------------

