PackagesCanonicalsLogsProblems
    Packages
    rs/de.gematik.erp.t@prescription-0.1.0-rc1
    https://gematik.de/fhir/erp-t-prescription/StructureMap/ERP-TPrescription-StructureMap-GEM-Medication
{
  "description": "Maps GEM ERP Medication to BfArM T-Prescription Medication format",
  "_filename": "StructureMap-ERP-TPrescription-StructureMap-GEM-Medication.json",
  "package_name": "rs/de.gematik.erp.t",
  "date": "2025-07-01",
  "group": [ {
    "name": "erpTGemMedicationMapping",
    "rule": [ {
      "name": "medicationId",
      "source": [ {
        "context": "gematikMedication",
        "element": "id",
        "variable": "IdVar"
      } ],
      "target": [ {
        "context": "bfarmMedication",
        "element": "id",
        "parameter": [ {
          "valueId": "IdVar"
        } ],
        "transform": "copy",
        "contextType": "variable"
      } ],
      "documentation": "Copies the Medication Id"
    }, {
      "name": "medicationExtension",
      "rule": [ {
        "name": "copyNormgroesseExtensionUrl",
        "rule": [ {
          "name": "copyExtensionValue",
          "source": [ {
            "context": "extVar",
            "element": "value",
            "variable": "extValVar"
          } ],
          "target": [ {
            "context": "tgtExtVar",
            "element": "value",
            "parameter": [ {
              "valueId": "extValVar"
            } ],
            "transform": "copy",
            "contextType": "variable"
          } ],
          "documentation": "Copies the the value for each Extension"
        } ],
        "source": [ {
          "context": "extVar",
          "condition": "url='http://fhir.de/StructureDefinition/normgroesse'"
        } ],
        "target": [ {
          "context": "tgtExtVar",
          "element": "url",
          "parameter": [ {
            "valueString": "http://fhir.de/StructureDefinition/normgroesse"
          } ],
          "transform": "copy",
          "contextType": "variable"
        } ],
        "documentation": "Copies the 'normgroesse' extension"
      }, {
        "name": "copyPackagingExtensionUrl",
        "rule": [ {
          "name": "copyExtensionValue",
          "source": [ {
            "context": "extVar",
            "element": "value",
            "variable": "extValVar"
          } ],
          "target": [ {
            "context": "tgtExtVar",
            "element": "value",
            "parameter": [ {
              "valueId": "extValVar"
            } ],
            "transform": "copy",
            "contextType": "variable"
          } ],
          "documentation": "Copies the the value for each Extension"
        } ],
        "source": [ {
          "context": "extVar",
          "condition": "url='https://gematik.de/fhir/epa-medication/StructureDefinition/medication-formulation-packaging-extension'"
        } ],
        "target": [ {
          "context": "tgtExtVar",
          "element": "url",
          "parameter": [ {
            "valueString": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-formulation-packaging-extension"
          } ],
          "transform": "copy",
          "contextType": "variable"
        } ],
        "documentation": "Copies the 'packaging' extension"
      } ],
      "source": [ {
        "context": "gematikMedication",
        "element": "extension",
        "variable": "extVar"
      } ],
      "target": [ {
        "context": "bfarmMedication",
        "element": "extension",
        "variable": "tgtExtVar",
        "contextType": "variable"
      } ],
      "documentation": "Copies the Medication Extensions"
    }, {
      "name": "medicationCode",
      "source": [ {
        "context": "gematikMedication",
        "element": "code",
        "variable": "codeVar"
      } ],
      "target": [ {
        "context": "bfarmMedication",
        "element": "code",
        "parameter": [ {
          "valueId": "codeVar"
        } ],
        "transform": "copy",
        "contextType": "variable"
      } ],
      "documentation": "Copies the Medication Code"
    }, {
      "name": "medicationForm",
      "source": [ {
        "context": "gematikMedication",
        "element": "form",
        "variable": "formVar"
      } ],
      "target": [ {
        "context": "bfarmMedication",
        "element": "form",
        "parameter": [ {
          "valueId": "formVar"
        } ],
        "transform": "copy",
        "contextType": "variable"
      } ],
      "documentation": "Copies the Medication Form"
    }, {
      "name": "medicationAmount",
      "source": [ {
        "context": "gematikMedication",
        "element": "amount",
        "variable": "amountVar"
      } ],
      "target": [ {
        "context": "bfarmMedication",
        "element": "amount",
        "parameter": [ {
          "valueId": "amountVar"
        } ],
        "transform": "copy",
        "contextType": "variable"
      } ],
      "documentation": "Copies the Medication Amount"
    }, {
      "name": "medicationIngredient",
      "source": [ {
        "context": "gematikMedication",
        "element": "ingredient",
        "variable": "ingredientVar"
      } ],
      "target": [ {
        "context": "bfarmMedication",
        "element": "ingredient",
        "parameter": [ {
          "valueId": "ingredientVar"
        } ],
        "transform": "copy",
        "contextType": "variable"
      } ],
      "documentation": "Copies the Medication Ingredient"
    } ],
    "input": [ {
      "mode": "source",
      "name": "gematikMedication",
      "type": "gematikMedication"
    }, {
      "mode": "target",
      "name": "bfarmMedication",
      "type": "bfarmMedication"
    } ],
    "typeMode": "none",
    "documentation": "Mapping group for medication information transformation"
  } ],
  "publisher": "gematik GmbH",
  "jurisdiction": [ {
    "coding": [ {
      "code": "DE",
      "system": "urn:iso:std:iso:3166",
      "display": "Germany"
    } ]
  } ],
  "name": "ERP-TPrescription-StructureMap-GEM-Medication",
  "type": null,
  "experimental": "false",
  "resourceType": "StructureMap",
  "title": "E-T-Rezept Structure Map for Medication",
  "package_version": "prescription-0.1.0-rc1",
  "structure": [ {
    "url": "http://hl7.org/fhir/StructureDefinition/Medication",
    "mode": "source",
    "alias": "gematikMedication"
  }, {
    "url": "http://hl7.org/fhir/StructureDefinition/Medication",
    "mode": "target",
    "alias": "bfarmMedication"
  } ],
  "status": "draft",
  "id": "e1ae73f3-2013-4718-88ad-bbd7e63c961b",
  "kind": null,
  "url": "https://gematik.de/fhir/erp-t-prescription/StructureMap/ERP-TPrescription-StructureMap-GEM-Medication",
  "version": "0.1.0",
  "contact": [ {
    "name": "gematik GmbH",
    "telecom": [ {
      "value": "https://gematik.de",
      "system": "url"
    } ]
  } ]
}