FHIR © HL7.org  |  FHIRsmith 4.0.1  |  Server Home  |  XIG Home  |  XIG Stats  | 

FHIR IG analytics

Packagede.gematik.erp-t-prescription
Resource TypeStructureMap
IdStructureMap-ERPTPrescriptionStructureMapTask.json
FHIR VersionR4

Resources that use this resource

No resources found


Resources that this resource uses

No resources found


Narrative

Note: links and images are rebased to the (stated) source

Generated Narrative: StructureMap ERPTPrescriptionStructureMapTask

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 {
    // Mappt die E-Rezept-ID aus dem Task in den Identifier
    srcTaskIdentifier.value as srcTaskIdentifierValue log (tgtIdentifier) ->  tgtIdentifier.system = 'https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId',  tgtIdentifier.value = srcTaskIdentifierValue "prescriptionIdValue";
  } "prescriptionId";
}


Source1

{
  "resourceType": "StructureMap",
  "id": "ERPTPrescriptionStructureMapTask",
  "text": {
    "status": "generated",
    "div": "<!-- snip (see above) -->"
  },
  "url": "https://gematik.de/fhir/erp-t-prescription/StructureMap/ERPTPrescriptionStructureMapTask",
  "version": "1.2.0",
  "name": "ERPTPrescriptionStructureMapTask",
  "title": "E-T-Rezept Structure Map for Task",
  "status": "active",
  "experimental": false,
  "date": "2026-07-27",
  "publisher": "gematik GmbH",
  "contact": [
    {
      "name": "gematik GmbH",
      "telecom": [
        {
          "system": "url",
          "value": "https://gematik.de"
        },
        {
          "system": "email",
          "value": "erp-umsetzung@gematik.de"
        }
      ]
    }
  ],
  "description": "Mappt die E-Rezept ID aus dem Task in ein Identifier Objekt",
  "jurisdiction": [
    {
      "coding": [
        {
          "system": "urn:iso:std:iso:3166",
          "code": "DE",
          "display": "Germany"
        }
      ]
    }
  ],
  "structure": [
    {
      "url": "http://hl7.org/fhir/StructureDefinition/Task",
      "mode": "source",
      "alias": "task"
    },
    {
      "url": "http://hl7.org/fhir/StructureDefinition/Identifier",
      "mode": "target",
      "alias": "tgtIdentifier"
    }
  ],
  "group": [
    {
      "name": "ERPTPrescriptionStructureMapTask",
      "typeMode": "none",
      "documentation": "Mapping Anweisungen für GEM_Task",
      "input": [
        {
          "name": "task",
          "type": "task",
          "mode": "source"
        },
        {
          "name": "tgtIdentifier",
          "type": "tgtIdentifier",
          "mode": "target"
        }
      ],
      "rule": [
        {
          "name": "prescriptionId",
          "source": [
            {
              "context": "task",
              "element": "identifier",
              "variable": "srcTaskIdentifier",
              "condition": "$this.system='https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId'"
            }
          ],
          "rule": [
            {
              "name": "prescriptionIdValue",
              "source": [
                {
                  "context": "srcTaskIdentifier",
                  "element": "value",
                  "variable": "srcTaskIdentifierValue",
                  "logMessage": "tgtIdentifier"
                }
              ],
              "target": [
                {
                  "context": "tgtIdentifier",
                  "contextType": "variable",
                  "element": "system",
                  "transform": "copy",
                  "parameter": [
                    {
                      "valueString": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"
                    }
                  ]
                },
                {
                  "context": "tgtIdentifier",
                  "contextType": "variable",
                  "element": "value",
                  "transform": "copy",
                  "parameter": [
                    {
                      "valueId": "srcTaskIdentifierValue"
                    }
                  ]
                }
              ],
              "documentation": "Mappt die E-Rezept-ID aus dem Task in den Identifier"
            }
          ]
        }
      ]
    }
  ]
}