Implementation Guide
E-T-Rezept Datenaustausch
Version 1.1.0-ballot-1 - ballot

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

Draft as of 2025-07-07

Raw ttl | Download


@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 -------------------------------------------------------------------

 a fhir:StructureMap ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "ERPTPrescriptionStructureMapTask"] ; # 
  fhir:text [
fhir:status [ fhir:v "generated" ] ;
fhir: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/erp-t-prescription/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=\"https://simplifier.net/resolve?scope=de.gematik.erezept-workflow.r4@1.5.2&amp;canonical=https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_Task\" title=\"Task for Management of ePrescription Workflow\">https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_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>$this.system='https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId'<b> then</b><span style=\"color: navy\"> {#xD;\n</span>    srcTaskIdentifier.value<b> as </b><span style=\"color: maroon\">srcTaskIdentifierValue</span><b> log </b>tgtIdentifier<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> <span style=\"color: navy\">// </span><span style=\"color: green\">Mappt die E-Rezept-ID aus dem Task in den Identifier</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>"^^rdf:XMLLiteral
  ] ; # 
  fhir:url [ fhir:v "https://gematik.de/fhir/erp-t-prescription/StructureMap/ERPTPrescriptionStructureMapTask"^^xsd:anyURI] ; # 
  fhir:version [ fhir:v "1.1.0-ballot-1"] ; # 
  fhir:name [ fhir:v "ERPTPrescriptionStructureMapTask"] ; # 
  fhir:title [ fhir:v "E-T-Rezept Structure Map for Task"] ; # 
  fhir:status [ fhir:v "draft"] ; # 
  fhir:experimental [ fhir:v false] ; # 
  fhir:date [ fhir:v "2025-07-07"^^xsd:date] ; # 
  fhir:publisher [ fhir:v "gematik GmbH"] ; # 
  fhir:contact ( [
fhir:name [ fhir:v "gematik GmbH" ] ;
    ( fhir:telecom [
fhir:system [ fhir:v "url" ] ;
fhir:value [ fhir:v "https://gematik.de" ]     ] [
fhir:system [ fhir:v "email" ] ;
fhir:value [ fhir:v "erp-umsetzung@gematik.de" ]     ] )
  ] ) ; # 
  fhir:description [ fhir:v "Mappt die E-Rezept ID aus dem Task in ein Identifier Objekt"] ; # 
  fhir:jurisdiction ( [
    ( fhir:coding [
fhir:system [ fhir:v "urn:iso:std:iso:3166"^^xsd:anyURI ] ;
fhir:code [ fhir:v "DE" ] ;
fhir:display [ fhir:v "Germany" ]     ] )
  ] ) ; # 
  fhir:structure ( [
fhir:url [
fhir:v "https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_Task"^^xsd:anyURI ;
fhir:link <https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_Task>     ] ;
fhir:mode [ fhir:v "source" ] ;
fhir:alias [ fhir:v "task" ]
  ] [
fhir:url [
fhir:v "http://hl7.org/fhir/StructureDefinition/Identifier"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/StructureDefinition/Identifier>     ] ;
fhir:mode [ fhir:v "target" ] ;
fhir:alias [ fhir:v "tgtIdentifier" ]
  ] ) ; # 
  fhir:group ( [
fhir:name [ fhir:v "ERPTPrescriptionStructureMapTask" ] ;
fhir:typeMode [ fhir:v "none" ] ;
fhir:documentation [ fhir:v "Mapping Anweisungen für GEM_Task" ] ;
    ( fhir:input [
fhir:name [ fhir:v "task" ] ;
fhir:type [ fhir:v "task" ] ;
fhir:mode [ fhir:v "source" ]     ] [
fhir:name [ fhir:v "tgtIdentifier" ] ;
fhir:type [ fhir:v "tgtIdentifier" ] ;
fhir:mode [ fhir:v "target" ]     ] ) ;
    ( fhir:rule [
fhir:name [ fhir:v "prescriptionId" ] ;
      ( fhir:source [
fhir:context [ fhir:v "task" ] ;
fhir:element [ fhir:v "identifier" ] ;
fhir:variable [ fhir:v "srcTaskIdentifier" ] ;
fhir:condition [ fhir:v "$this.system='https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId'" ]       ] ) ;
      ( fhir:rule [
fhir:name [ fhir:v "prescriptionIdValue" ] ;
        ( fhir:source [
fhir:context [ fhir:v "srcTaskIdentifier" ] ;
fhir:element [ fhir:v "value" ] ;
fhir:variable [ fhir:v "srcTaskIdentifierValue" ] ;
fhir:logMessage [ fhir:v "tgtIdentifier" ]         ] ) ;
        ( fhir:target [
fhir:context [ fhir:v "tgtIdentifier" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "system" ] ;
fhir:transform [ fhir:v "copy" ] ;
          ( fhir:parameter [
fhir:value [
a fhir:string ;
fhir:v "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"             ]           ] )         ] [
fhir:context [ fhir:v "tgtIdentifier" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "value" ] ;
fhir:transform [ fhir:v "copy" ] ;
          ( fhir:parameter [
fhir:value [
a fhir:id ;
fhir:v "srcTaskIdentifierValue"             ]           ] )         ] ) ;
fhir:documentation [ fhir:v "Mappt die E-Rezept-ID aus dem Task in den Identifier" ]       ] )     ] )
  ] ) . #