@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-eml-entry-output-parameters-1> a fhir:Parameters ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "example-epa-op-eml-entry-output-parameters-1"] ; # 
  fhir:meta [
     fhir:profile ( [
       fhir:v "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-eml-entry-output-parameters"^^xsd:anyURI ;
       fhir:link <https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-eml-entry-output-parameters>
     ] )
  ] ; # 
  fhir:parameter ( [
     fhir:name [ fhir:v "medicationStatement" ] ;
     fhir:Parameters.parameter.resource ( [
       a fhir:MedicationStatement ;
       fhir:id [ fhir:v "71601cdb-8a53-4f26-b5d5-e5457b498e76" ] ;
       fhir:meta [
         fhir:versionId [ fhir:v "1" ] ;
         fhir:lastUpdated [ fhir:v "2026-02-22T14:43:33.444Z"^^xsd:dateTime ] ;
         fhir:profile ( [
           fhir:v "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-statement"^^xsd:anyURI ;
           fhir:link <https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-statement>
         ] )
       ] ;
       fhir:extension ( [
         fhir:url [ fhir:v "https://gematik.de/fhir/epa-medication/StructureDefinition/context-extension"^^xsd:anyURI ] ;
         fhir:value [
           a fhir:code ;
           fhir:v "MANUAL"
         ]
       ] ) ;
       fhir:status [ fhir:v "unknown" ] ;
       fhir:medication [
         a fhir:Reference ;
         fhir:link <https://gematik.de/fhir/epa-medication/Medication/2571d29b-e213-40ec-b817-a1490718f491> ;
         fhir:reference [ fhir:v "Medication/2571d29b-e213-40ec-b817-a1490718f491" ]
       ] ;
       fhir:subject [
         fhir:identifier [
           fhir:system [ fhir:v "http://fhir.de/sid/gkv/kvid-10"^^xsd:anyURI ] ;
           fhir:value [ fhir:v "X110411319" ]
         ]
       ] ;
       fhir:effective [
         a fhir:Period ;
         fhir:start [ fhir:v "2026-02-10"^^xsd:date ]
       ] ;
       fhir:dateAsserted [ fhir:v "2026-02-22"^^xsd:date ] ;
       fhir:dosage ( [
         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 "2 x täglich: morgens und abends — 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 "2"^^xsd:positiveInteger ] ;
             fhir:period [ fhir:v "1"^^xsd:decimal ] ;
             fhir:periodUnit [ fhir:v "d" ] ;
             fhir:when ( [ fhir:v "MORN" ] [ fhir:v "EVE" ] )
           ]
         ] ;
         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:name [ fhir:v "medication" ] ;
     fhir:Parameters.parameter.resource ( [
       a fhir:Medication ;
       fhir:id [ fhir:v "2571d29b-e213-40ec-b817-a1490718f491" ] ;
       fhir:meta [
         fhir:versionId [ fhir:v "1" ] ;
         fhir:lastUpdated [ fhir:v "2026-02-22T14:43:33.244Z"^^xsd:dateTime ] ;
         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:781405001 ;
           fhir:system [ fhir:v "http://snomed.info/sct"^^xsd:anyURI ] ;
           fhir:code [ fhir:v "781405001" ] ;
           fhir:display [ fhir:v "Medicinal product package (product)" ]
         ]
       ] [
         fhir:url [ fhir:v "http://fhir.de/StructureDefinition/normgroesse"^^xsd:anyURI ] ;
         fhir:value [
           a fhir:code ;
           fhir:v "N1"
         ]
       ] ) ;
       fhir:identifier ( [
         fhir:system [ fhir:v "https://gematik.de/fhir/epa-medication/sid/epa-medication-unique-identifier"^^xsd:anyURI ] ;
         fhir:value [ fhir:v "B849184C973EA5FA7D9751E6FAA6AFCFFD100183596239F84DD2C0FG4C751D67" ]
       ] ) ;
       fhir:code [
         fhir:coding ( [
           fhir:system [ fhir:v "http://fhir.de/CodeSystem/ifa/pzn"^^xsd:anyURI ] ;
           fhir:code [ fhir:v "14170042" ] ;
           fhir:display [ fhir:v "Diclo-ratiopharm® bei Schmerzen und Fieber 25 mg Filmtabletten" ]
         ] ) ;
         fhir:text [ fhir:v "Diclo-ratiopharm® bei Schmerzen und Fieber 25 mg Filmtabletten" ]
       ] ;
       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 "20 St."
             ]
           ] ) ;
           fhir:value [ fhir:v "20"^^xsd:decimal ] ;
           fhir:unit [ fhir:v "St" ]
         ] ;
         fhir:denominator [
           fhir:value [ fhir:v "1"^^xsd:decimal ]
         ]
       ]
     ] )
  ] [
     fhir:name [ fhir:v "relatedActivity" ] ;
     fhir:Parameters.parameter.resource ( [
       a fhir:Provenance ;
       fhir:id [ fhir:v "a36b3ae8-1c1d-4dbb-b209-ee2ee9fc31e6" ] ;
       fhir:meta [
         fhir:profile ( [
           fhir:v "https://gematik.de/fhir/epa/StructureDefinition/epa-activity-provenance"^^xsd:anyURI ;
           fhir:link <https://gematik.de/fhir/epa/StructureDefinition/epa-activity-provenance>
         ] )
       ] ;
       fhir:target ( [
         fhir:link <https://gematik.de/fhir/epa-medication/MedicationStatement/71601cdb-8a53-4f26-b5d5-e5457b498e76/_history/1> ;
         fhir:reference [ fhir:v "MedicationStatement/71601cdb-8a53-4f26-b5d5-e5457b498e76/_history/1" ]
       ] ) ;
       fhir:recorded [ fhir:v "2026-08-18T14:43:33.344Z"^^xsd:dateTime ] ;
       fhir:activity [
         fhir:coding ( [
           fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/v3-DataOperation"^^xsd:anyURI ] ;
           fhir:code [ fhir:v "CREATE" ]
         ] )
       ] ;
       fhir:agent ( [
         fhir:type [
           fhir:coding ( [
             fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/provenance-participant-type"^^xsd:anyURI ] ;
             fhir:code [ fhir:v "author" ]
           ] )
         ] ;
         fhir:who [
           fhir:link <https://gematik.de/fhir/epa-medication/Organization/8B421590-9F7F-46BE-BD1E-C987063AC4F5> ;
           fhir:reference [ fhir:v "Organization/8B421590-9F7F-46BE-BD1E-C987063AC4F5" ] ;
           fhir:identifier [
             fhir:type [
               fhir:coding ( [
                 fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/v2-0203"^^xsd:anyURI ] ;
                 fhir:code [ fhir:v "PRN" ]
               ] )
             ] ;
             fhir:system [ fhir:v "https://gematik.de/fhir/sid/telematik-id"^^xsd:anyURI ] ;
             fhir:value [ fhir:v "9-2.58.00000060" ]
           ] ;
           fhir:display [ fhir:v "Die Apotheke" ]
         ]
       ] )
     ] )
  ] ) . # 

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

