@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 sct: <http://snomed.info/id/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

# - resource -------------------------------------------------------------------

<https://gematik.de/fhir/epa-medication/Parameters/example-epa-op-provide-prescription-erp-input-parameters-1> a fhir:Parameters ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "example-epa-op-provide-prescription-erp-input-parameters-1"] ; # 
  fhir:meta [
     fhir:profile ( [
       fhir:v "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters"^^xsd:anyURI ;
       fhir:link <https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters>
     ] )
  ] ; # 
  fhir:parameter ( [
     fhir:name [ fhir:v "rxPrescription" ] ;
     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.011.09" ]
       ]
     ] [
       fhir:name [ fhir:v "authoredOn" ] ;
       fhir:value [
         a fhir:date ;
         fhir:v "2025-09-06"^^xsd:date
       ]
     ] [
       fhir:name [ fhir:v "medicationRequest" ] ;
       fhir:Parameters.parameter.resource ( [
         a fhir:MedicationRequest ;
         fhir:id [ fhir:v "59b9fa64-4ca1-4bd2-8388-652d0fec32b2" ] ;
         fhir:meta [
           fhir:profile ( [
             fhir:v "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request"^^xsd:anyURI ;
             fhir:link <https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request>
           ] )
         ] ;
         fhir:extension ( [
           fhir:extension ( [
             fhir:url [ fhir:v "indicator"^^xsd:anyURI ] ;
             fhir:value [
               a fhir:boolean ;
               fhir:v false
             ]
           ] ) ;
           fhir:url [ fhir:v "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"^^xsd:anyURI ]
         ] ) ;
         fhir:status [ fhir:v "active" ] ;
         fhir:intent [ fhir:v "filler-order" ] ;
         fhir:medication [
           a fhir:Reference ;
           fhir:link <https://gematik.de/fhir/epa-medication/Medication/9fae333f-92b1-4f03-b838-cd5c5d2285b5> ;
           fhir:reference [ fhir:v "Medication/9fae333f-92b1-4f03-b838-cd5c5d2285b5" ]
         ] ;
         fhir:subject [
           fhir:identifier [
             fhir:system [ fhir:v "http://fhir.de/sid/gkv/kvid-10"^^xsd:anyURI ] ;
             fhir:value [ fhir:v "X110411319" ]
           ]
         ] ;
         fhir:authoredOn [ fhir:v "2025-09-06"^^xsd:date ] ;
         fhir:dosageInstruction ( [
           fhir:extension ( [
             fhir:extension ( [
               fhir:url [ fhir:v "algorithm"^^xsd:anyURI ] ;
               fhir:value [
                 a fhir:Coding ;
                 fhir:system [ fhir:v "http://ig.fhir.de/igs/medication/CodeSystem/DosageTextAlgorithm"^^xsd:anyURI ] ;
                 fhir:version [ fhir:v "1.0.0" ] ;
                 fhir:code [ fhir:v "GematikDosageTextGenerator" ]
               ]
             ] [
               fhir:url [ fhir:v "algorithmVersion"^^xsd:anyURI ] ;
               fhir:value [
                 a fhir:string ;
                 fhir:v "1.0.0"
               ]
             ] [
               fhir:url [ fhir:v "language"^^xsd:anyURI ] ;
               fhir:value [
                 a fhir:code ;
                 fhir:v "de-DE"
               ]
             ] [
               fhir:url [ fhir:v "text"^^xsd:anyURI ] ;
               fhir:value [
                 a fhir:string ;
                 fhir:v "täglich: morgens — je 1 Stück"
               ]
             ] ) ;
             fhir:url [ fhir:v "http://ig.fhir.de/igs/medication/StructureDefinition/GeneratedDosageInstructions"^^xsd:anyURI ]
           ] ) ;
           fhir:timing [
             fhir:repeat [
               fhir:frequency [ fhir:v "1"^^xsd:positiveInteger ] ;
               fhir:period [ fhir:v "1"^^xsd:decimal ] ;
               fhir:periodUnit [ fhir:v "d" ] ;
               fhir:when ( [ fhir:v "MORN" ] )
             ]
           ] ;
           fhir:doseAndRate ( [
             fhir:dose [
               a fhir:Quantity ;
               fhir:value [ fhir:v "1"^^xsd:decimal ] ;
               fhir:unit [ fhir:v "Stück" ] ;
               fhir:system [ fhir:v "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_BMP_DOSIEREINHEIT"^^xsd:anyURI ] ;
               fhir:code [ fhir:v "1" ]
             ]
           ] )
         ] ) ;
         fhir:dispenseRequest [
           fhir:quantity [
             fhir:value [ fhir:v "1"^^xsd:decimal ] ;
             fhir:unit [ fhir:v "Packung" ]
           ]
         ] ;
         fhir:substitution [
           fhir:allowed [
             a fhir:boolean ;
             fhir:v true
           ]
         ]
       ] )
     ] [
       fhir:name [ fhir:v "medication" ] ;
       fhir:Parameters.parameter.resource ( [
         a fhir:Medication ;
         fhir:id [ fhir:v "9fae333f-92b1-4f03-b838-cd5c5d2285b5" ] ;
         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/epa-medication-type-extension"^^xsd:anyURI ] ;
           fhir:value [
             a fhir:Coding, sct:763158003 ;
             fhir:system [ fhir:v "http://snomed.info/sct"^^xsd:anyURI ] ;
             fhir:code [ fhir:v "763158003" ] ;
             fhir:display [ fhir:v "Medicinal product (product)" ]
           ]
         ] [
           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 "04773414" ]
           ] ) ;
           fhir:text [ fhir:v "Doxycyclin AL 200 T, 10 Tabletten 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 "TAB" ]
           ] )
         ] ;
         fhir:amount [
           fhir:numerator [
             fhir:extension ( [
               fhir:url [ fhir:v "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-total-quantity-formulation-extension"^^xsd:anyURI ] ;
               fhir:value [
                 a fhir:string ;
                 fhir:v "10"
               ]
             ] ) ;
             fhir:unit [ fhir:v "Tabletten" ]
           ] ;
           fhir:denominator [
             fhir:value [ fhir:v "1"^^xsd:decimal ]
           ]
         ] ;
         fhir:ingredient ( [
           fhir:item [
             a fhir:CodeableConcept ;
             fhir:coding ( [
               fhir:system [ fhir:v "http://fhir.de/CodeSystem/ask"^^xsd:anyURI ] ;
               fhir:code [ fhir:v "03876" ]
             ] ) ;
             fhir:text [ fhir:v "Doxycyclin" ]
           ] ;
           fhir:strength [
             fhir:numerator [
               fhir:value [ fhir:v "200"^^xsd:decimal ] ;
               fhir:unit [ fhir:v "mg" ]
             ] ;
             fhir:denominator [
               fhir:value [ fhir:v "1"^^xsd:decimal ] ;
               fhir:unit [ fhir:v "Tbl." ]
             ]
           ]
         ] )
       ] )
     ] [
       fhir:name [ fhir:v "organization" ] ;
       fhir:Parameters.parameter.resource ( [
         a fhir:Organization ;
         fhir:id [ fhir:v "2a61f8e5-806c-4b4e-b6be-73546cc1de3d" ] ;
         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.00000045" ]
         ] [
           fhir:system [ fhir:v "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"^^xsd:anyURI ] ;
           fhir:value [ fhir:v "012300004" ]
         ] ) ;
         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.50" ] ;
             fhir:display [ fhir:v "Betriebsstätte Arzt" ]
           ] )
         ] ) ;
         fhir:name [ fhir:v "Praxis Dr. med. Max Mustermann" ] ;
         fhir:address ( [
           fhir:type [ fhir:v "both" ] ;
           fhir:line ( [ fhir:v "Musterstr. 1" ] [ fhir:v "Mitte" ] ) ;
           fhir:city [ fhir:v "Darmstadt" ] ;
           fhir:postalCode [ fhir:v "64283" ] ;
           fhir:country [ fhir:v "DE" ]
         ] [
           fhir:type [ fhir:v "postal" ] ;
           fhir:line ( [ fhir:v "45678" ] ) ;
           fhir:city [ fhir:v "Darmstadt" ] ;
           fhir:country [ fhir:v "DE" ]
         ] )
       ] )
     ] [
       fhir:name [ fhir:v "practitioner" ] ;
       fhir:Parameters.parameter.resource ( [
         a fhir:Practitioner ;
         fhir:id [ fhir:v "d444db71-e932-4c4c-a5cb-1844b2173cef" ] ;
         fhir:meta [
           fhir:profile ( [
             fhir:v "https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory"^^xsd:anyURI ;
             fhir:link <https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory>
           ] ) ;
           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 "1-1.58.00000056" ]
         ] [
           fhir:system [ fhir:v "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"^^xsd:anyURI ] ;
           fhir:value [ fhir:v "123456789" ]
         ] ) ;
         fhir:active [ fhir:v true ] ;
         fhir:name ( [
           fhir:text [ fhir:v "Dr. Max Manfred Mustermann" ] ;
           fhir:family [ fhir:v "Musterman" ] ;
           fhir:given ( [ fhir:v "Max" ] [ fhir:v "Manfred" ] ) ;
           fhir:prefix ( [ fhir:v "Dr." ] )
         ] )
       ] )
     ] )
  ] ) . # 

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

