FHIR © HL7.org  |  Server Home  |  XIG Home  |  XIG Stats  |  Server Source  |  FHIR  

FHIR IG Statistics: StructureMap/ERPTPrescriptionStructureMapMedicationDispense

Packagede.gematik.erp.t-prescription
Resource TypeStructureMap
IdERPTPrescriptionStructureMapMedicationDispense
FHIR VersionR4
Sourcehttps://simplifier.net/resolve?scope=de.gematik.erp.t-prescription@1.1.0-ballot-1&canonical=https://gematik.de/fhir/erp-t-prescription/StructureMap/ERPTPrescriptionStructureMapMedicationDispense
URLhttps://gematik.de/fhir/erp-t-prescription/StructureMap/ERPTPrescriptionStructureMapMedicationDispense
Version1.0.0-ballot-1
Statusdraft
Date2025-07-07
NameERPTPrescriptionStructureMapMedicationDispense
TitleE-T-Rezept Structure Map for MedicationDispense
DescriptionMaps GEM ERP MedicationDispense BfArM T-Prescription MedicationDispense format

Resources that use this resource

No resources found


Resources that this resource uses

No resources found


Narrative

No narrative content found in resource


Source

{
  "resourceType": "StructureMap",
  "id": "ERPTPrescriptionStructureMapMedicationDispense",
  "url": "https://gematik.de/fhir/erp-t-prescription/StructureMap/ERPTPrescriptionStructureMapMedicationDispense",
  "title": "E-T-Rezept Structure Map for MedicationDispense",
  "description": "Maps GEM ERP MedicationDispense BfArM T-Prescription MedicationDispense format",
  "structure": [
    {
      "url": "http://hl7.org/fhir/StructureDefinition/MedicationDispense",
      "mode": "source",
      "alias": "gematikMedicationDispense"
    },
    {
      "url": "https://gematik.de/fhir/erp-t-prescription/StructureDefinition/erp-tprescription-medication-dispense",
      "mode": "target",
      "alias": "bfarmMedicationDispense"
    }
  ],
  "group": [
    {
      "input": [
        {
          "name": "gematikMedicationDispense",
          "type": "gematikMedicationDispense",
          "mode": "source"
        },
        {
          "name": "bfarmMedicationDispense",
          "type": "bfarmMedicationDispense",
          "mode": "target"
        }
      ],
      "rule": [
        {
          "source": [
            {
              "context": "gematikMedicationDispense",
              "element": "dosageInstruction",
              "variable": "dosageInstructionVar"
            }
          ],
          "target": [
            {
              "parameter": [
                {
                  "valueId": "dosageInstructionVar"
                }
              ],
              "context": "bfarmMedicationDispense",
              "contextType": "variable",
              "element": "dosageInstruction",
              "transform": "copy"
            }
          ],
          "name": "medicationDispenseDosageInstruction",
          "documentation": "TODO"
        },
        {
          "source": [
            {
              "context": "gematikMedicationDispense",
              "element": "whenHandedOver",
              "variable": "whenHandedOverVar"
            }
          ],
          "target": [
            {
              "parameter": [
                {
                  "valueId": "whenHandedOverVar"
                }
              ],
              "context": "bfarmMedicationDispense",
              "contextType": "variable",
              "element": "whenHandedOver",
              "transform": "copy"
            }
          ],
          "name": "medicationDispenseDosageInstruction",
          "documentation": "TODO"
        },
        {
          "source": [
            {
              "context": "gematikMedicationDispense",
              "element": "medication",
              "variable": "medicationVar"
            }
          ],
          "target": [
            {
              "parameter": [
                {
                  "valueId": "medicationVar"
                }
              ],
              "context": "bfarmMedicationDispense",
              "contextType": "variable",
              "element": "medication",
              "transform": "copy"
            }
          ],
          "name": "medicationReference",
          "documentation": "Copy medication; ensure correct mapping from reference is stated"
        },
        {
          "source": [
            {
              "context": "gematikMedicationDispense",
              "element": "status",
              "variable": "gematikMedicationDispenseStatus"
            }
          ],
          "target": [
            {
              "parameter": [
                {
                  "valueString": "completed"
                }
              ],
              "context": "bfarmMedicationDispense",
              "contextType": "variable",
              "element": "status",
              "transform": "copy"
            }
          ],
          "name": "medicationDispenseStatus",
          "documentation": "TODO"
        },
        {
          "source": [
            {
              "context": "gematikMedicationDispense",
              "element": "quantity",
              "variable": "quantityVar"
            }
          ],
          "target": [
            {
              "parameter": [
                {
                  "valueId": "quantityVar"
                }
              ],
              "context": "bfarmMedicationDispense",
              "contextType": "variable",
              "element": "quantity",
              "transform": "copy"
            }
          ],
          "name": "medicationDispenseQuantity",
          "documentation": "TODO"
        },
        {
          "source": [
            {
              "context": "gematikMedicationDispense",
              "element": "performer",
              "variable": "srcPerformerVar"
            }
          ],
          "target": [
            {
              "context": "bfarmMedicationDispense",
              "contextType": "variable",
              "element": "performer",
              "variable": "tgtPerformerVar"
            }
          ],
          "rule": [
            {
              "source": [
                {
                  "context": "srcPerformerVar",
                  "element": "actor",
                  "variable": "srcPerformerActorVar"
                }
              ],
              "target": [
                {
                  "contextType": "variable",
                  "context": "tgtPerformerVar",
                  "element": "actor",
                  "variable": "tgtPerformerActorVar"
                }
              ],
              "rule": [
                {
                  "source": [
                    {
                      "context": "srcPerformerActorVar",
                      "element": "identifier",
                      "variable": "srcPerformerActorIdentifierVar"
                    }
                  ],
                  "rule": [
                    {
                      "source": [
                        {
                          "context": "srcPerformerActorIdentifierVar",
                          "element": "value",
                          "variable": "srcPerformerActorIdentifierValueVar"
                        }
                      ],
                      "target": [
                        {
                          "parameter": [
                            {
                              "valueString": "Organization/"
                            },
                            {
                              "valueId": "srcPerformerActorIdentifierValueVar"
                            }
                          ],
                          "context": "tgtPerformerActorVar",
                          "contextType": "variable",
                          "element": "reference",
                          "transform": "append"
                        }
                      ],
                      "name": "medicationDispensePerformerActorIdentifierValue"
                    }
                  ],
                  "name": "medicationDispensePerformerActorIdentifier"
                }
              ],
              "name": "medicationDispensePerformerActor"
            }
          ],
          "name": "medicationDispensePerformer",
          "documentation": "Map performer.identifier to a reference to Organization with the identifier value"
        }
      ],
      "name": "ERPTPrescriptionStructureMapMedicationDispense",
      "typeMode": "none",
      "documentation": "Mapping group for dispense information transformation"
    }
  ],
  "status": "draft",
  "version": "1.0.0-ballot-1",
  "date": "2025-07-07",
  "name": "ERPTPrescriptionStructureMapMedicationDispense",
  "experimental": false
}