TIFlow - Datenaustausch BfArM Webdienst
Version 2.0.0-ballot.1 - ci-build

## StructureMap: E-T-Rezept Structure Map for Task

Official URL: https://gematik.de/fhir/erp-t-prescription/StructureMap/ERPTPrescriptionStructureMapTask | Version: 2.0.0-ballot.1
Draft as of 2026-05-26 | Computable Name: ERPTPrescriptionStructureMapTask

Mappt die E-Rezept ID aus dem Task in ein Identifier Objekt

    map "https://gematik.de/fhir/erp-t-prescription/StructureMap/ERPTPrescriptionStructureMapTask" = "ERPTPrescriptionStructureMapTask"

    // Mappt die E-Rezept ID aus dem Task in ein Identifier Objekt

    uses "http://hl7.org/fhir/StructureDefinition/Task" alias task as source
    uses "http://hl7.org/fhir/StructureDefinition/Identifier" alias tgtIdentifier as target

    // Mapping Anweisungen für GEM_Task
    group ERPTPrescriptionStructureMapTask(source task : task, target tgtIdentifier : tgtIdentifier) {
      task.identifier as srcTaskIdentifier where $this.system='https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId' then {
        srcTaskIdentifier.value as srcTaskIdentifierValue log tgtIdentifier ->  tgtIdentifier.system = 'https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId',  tgtIdentifier.value = srcTaskIdentifierValue "prescriptionIdValue"; // Mappt die E-Rezept-ID aus dem Task in den Identifier
      } "prescriptionId";
    }