Implementation Guide
TIFlow - Datenaustausch BfArM Webdienst
Version 2.0.0 - release

: E-T-Rezept Structure Map for Task - TTL Representation

Active as of 2026-10-02

Raw ttl | Download


@prefix fhir: <http://hl7.org/fhir/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

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

<http://hl7.org/fhir/StructureMap/ERPTPrescriptionStructureMapTask> a fhir:StructureMap ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:Resource.id [ fhir:value "ERPTPrescriptionStructureMapTask"] ;
  fhir:DomainResource.text [
     fhir:Narrative.status [ fhir:value "generated" ] ;
     fhir:Narrative.div "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p class=\"res-header-id\"><b>Generated Narrative: StructureMap ERPTPrescriptionStructureMapTask</b></p><a name=\"ERPTPrescriptionStructureMapTask\"> </a><a name=\"hcERPTPrescriptionStructureMapTask\"> </a><pre class=\"fml\">#xD;\n<b>map</b><span style=\"color: navy\"> \"</span>https://gematik.de/fhir/tiflow-bfarm/StructureMap/ERPTPrescriptionStructureMapTask<span style=\"color: navy\">\" = \"</span>ERPTPrescriptionStructureMapTask<span style=\"color: navy\">\"#xD;\n#xD;\n</span><span style=\"color: navy\">// </span><span style=\"color: green\">Mappt die E-Rezept ID aus dem Task in ein Identifier Objekt</span>#xD;\n#xD;\n<b>uses</b><span style=\"color: navy\"> \"</span><a href=\"http://hl7.org/fhir/R4/task.html\" title=\"Task\">http://hl7.org/fhir/StructureDefinition/Task</a><span style=\"color: navy\">\" </span><b>alias </b>task <b>as </b><b>source</b>#xD;\n<b>uses</b><span style=\"color: navy\"> \"</span><a href=\"http://hl7.org/fhir/R4/datatypes.html#Identifier\" title=\"Identifier\">http://hl7.org/fhir/StructureDefinition/Identifier</a><span style=\"color: navy\">\" </span><b>alias </b>tgtIdentifier <b>as </b><b>target</b>#xD;\n#xD;\n<span style=\"color: navy\">// </span><span style=\"color: green\">Mapping Anweisungen für GEM_Task</span>#xD;\n<b>group </b>ERPTPrescriptionStructureMapTask<span style=\"color: navy\">(</span><b>source</b> <span style=\"color: maroon\">task</span><span style=\"color: navy\"> : </span>task, <b>target</b> <span style=\"color: maroon\">tgtIdentifier</span><span style=\"color: navy\"> : </span>tgtIdentifier<span style=\"color: navy\">)</span><span style=\"color: navy\"> {#xD;\n</span>  task.identifier<b> as </b><span style=\"color: maroon\">srcTaskIdentifier</span><b> where </b><span style=\"color: navy\">(</span>$this.system='https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId'<span style=\"color: navy\">)</span><b> then</b><span style=\"color: navy\"> {#xD;\n</span>    <span style=\"color: navy\">// </span><span style=\"color: green\">Mappt die E-Rezept-ID aus dem Task in den Identifier</span>#xD;\n    srcTaskIdentifier.value<b> as </b><span style=\"color: maroon\">srcTaskIdentifierValue</span><b> log </b><span style=\"color: navy\">(</span>tgtIdentifier<span style=\"color: navy\">)</span><span style=\"color: navy\"><b> -&gt; </b></span> tgtIdentifier.system = <span style=\"color: blue\">'https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId'</span><span style=\"color: navy\">, </span> tgtIdentifier.value = <span style=\"color: maroon\">srcTaskIdentifierValue</span> <i>\"prescriptionIdValue\"</i><span style=\"color: navy\">;</span>#xD;\n  <span style=\"color: navy\">}</span> <i>\"prescriptionId\"</i><span style=\"color: navy\">;</span>#xD;\n<span style=\"color: navy\">}#xD;\n#xD;\n</span></pre></div>"
  ] ;
  fhir:StructureMap.url [ fhir:value "https://gematik.de/fhir/tiflow-bfarm/StructureMap/ERPTPrescriptionStructureMapTask"] ;
  fhir:StructureMap.version [ fhir:value "2.0.0"] ;
  fhir:StructureMap.name [ fhir:value "ERPTPrescriptionStructureMapTask"] ;
  fhir:StructureMap.title [ fhir:value "E-T-Rezept Structure Map for Task"] ;
  fhir:StructureMap.status [ fhir:value "active"] ;
  fhir:StructureMap.experimental [ fhir:value "false"^^xsd:boolean] ;
  fhir:StructureMap.date [ fhir:value "2026-10-02"^^xsd:date] ;
  fhir:StructureMap.publisher [ fhir:value "gematik GmbH"] ;
  fhir:StructureMap.contact [
     fhir:index 0 ;
     fhir:ContactDetail.name [ fhir:value "gematik GmbH" ] ;
     fhir:ContactDetail.telecom [
       fhir:index 0 ;
       fhir:ContactPoint.system [ fhir:value "url" ] ;
       fhir:ContactPoint.value [ fhir:value "https://gematik.de" ]
     ], [
       fhir:index 1 ;
       fhir:ContactPoint.system [ fhir:value "email" ] ;
       fhir:ContactPoint.value [ fhir:value "erp-umsetzung@gematik.de" ]
     ]
  ] ;
  fhir:StructureMap.description [ fhir:value "Mappt die E-Rezept ID aus dem Task in ein Identifier Objekt"] ;
  fhir:StructureMap.jurisdiction [
     fhir:index 0 ;
     fhir:CodeableConcept.coding [
       fhir:index 0 ;
       fhir:Coding.system [ fhir:value "urn:iso:std:iso:3166" ] ;
       fhir:Coding.code [ fhir:value "DE" ] ;
       fhir:Coding.display [ fhir:value "Germany" ]
     ]
  ] ;
  fhir:StructureMap.structure [
     fhir:index 0 ;
     fhir:StructureMap.structure.url [
       fhir:value "http://hl7.org/fhir/StructureDefinition/Task" ;
       fhir:link <http://hl7.org/fhir/StructureDefinition/Task>
     ] ;
     fhir:StructureMap.structure.mode [ fhir:value "source" ] ;
     fhir:StructureMap.structure.alias [ fhir:value "task" ]
  ], [
     fhir:index 1 ;
     fhir:StructureMap.structure.url [
       fhir:value "http://hl7.org/fhir/StructureDefinition/Identifier" ;
       fhir:link <http://hl7.org/fhir/StructureDefinition/Identifier>
     ] ;
     fhir:StructureMap.structure.mode [ fhir:value "target" ] ;
     fhir:StructureMap.structure.alias [ fhir:value "tgtIdentifier" ]
  ] ;
  fhir:StructureMap.group [
     fhir:index 0 ;
     fhir:StructureMap.group.name [ fhir:value "ERPTPrescriptionStructureMapTask" ] ;
     fhir:StructureMap.group.typeMode [ fhir:value "none" ] ;
     fhir:StructureMap.group.documentation [ fhir:value "Mapping Anweisungen für GEM_Task" ] ;
     fhir:StructureMap.group.input [
       fhir:index 0 ;
       fhir:StructureMap.group.input.name [ fhir:value "task" ] ;
       fhir:StructureMap.group.input.type [ fhir:value "task" ] ;
       fhir:StructureMap.group.input.mode [ fhir:value "source" ]
     ], [
       fhir:index 1 ;
       fhir:StructureMap.group.input.name [ fhir:value "tgtIdentifier" ] ;
       fhir:StructureMap.group.input.type [ fhir:value "tgtIdentifier" ] ;
       fhir:StructureMap.group.input.mode [ fhir:value "target" ]
     ] ;
     fhir:StructureMap.group.rule [
       fhir:index 0 ;
       fhir:StructureMap.group.rule.name [ fhir:value "prescriptionId" ] ;
       fhir:StructureMap.group.rule.source [
         fhir:index 0 ;
         fhir:StructureMap.group.rule.source.context [ fhir:value "task" ] ;
         fhir:StructureMap.group.rule.source.element [ fhir:value "identifier" ] ;
         fhir:StructureMap.group.rule.source.variable [ fhir:value "srcTaskIdentifier" ] ;
         fhir:StructureMap.group.rule.source.condition [ fhir:value "$this.system='https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId'" ]
       ] ;
       fhir:StructureMap.group.rule.rule [
         fhir:index 0 ;
         fhir:StructureMap.group.rule.name [ fhir:value "prescriptionIdValue" ] ;
         fhir:StructureMap.group.rule.source [
           fhir:index 0 ;
           fhir:StructureMap.group.rule.source.context [ fhir:value "srcTaskIdentifier" ] ;
           fhir:StructureMap.group.rule.source.element [ fhir:value "value" ] ;
           fhir:StructureMap.group.rule.source.variable [ fhir:value "srcTaskIdentifierValue" ] ;
           fhir:StructureMap.group.rule.source.logMessage [ fhir:value "tgtIdentifier" ]
         ] ;
         fhir:StructureMap.group.rule.target [
           fhir:index 0 ;
           fhir:StructureMap.group.rule.target.context [ fhir:value "tgtIdentifier" ] ;
           fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ] ;
           fhir:StructureMap.group.rule.target.element [ fhir:value "system" ] ;
           fhir:StructureMap.group.rule.target.transform [ fhir:value "copy" ] ;
           fhir:StructureMap.group.rule.target.parameter [
             fhir:index 0 ;
             fhir:StructureMap.group.rule.target.parameter.valueString [ fhir:value "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId" ]
           ]
         ], [
           fhir:index 1 ;
           fhir:StructureMap.group.rule.target.context [ fhir:value "tgtIdentifier" ] ;
           fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ] ;
           fhir:StructureMap.group.rule.target.element [ fhir:value "value" ] ;
           fhir:StructureMap.group.rule.target.transform [ fhir:value "copy" ] ;
           fhir:StructureMap.group.rule.target.parameter [
             fhir:index 0 ;
             fhir:StructureMap.group.rule.target.parameter.valueId [ fhir:value "srcTaskIdentifierValue" ]
           ]
         ] ;
         fhir:StructureMap.group.rule.documentation [ fhir:value "Mappt die E-Rezept-ID aus dem Task in den Identifier" ]
       ]
     ]
  ] .

# - ontology header ------------------------------------------------------------

<http://hl7.org/fhir/StructureMap/ERPTPrescriptionStructureMapTask.ttl> a owl:Ontology ;
  owl:imports fhir:fhir.ttl ;
  owl:versionIRI <http://build.fhir.org/StructureMap/ERPTPrescriptionStructureMapTask.ttl> .