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

## Beispiel 2: Wirkstoff Verordnung

Dieses Beispiel demonstriert das Mapping einer E-T-Rezept Wirkstoff-Verordnung mit allen Quellressourcen in den digitalen Durchschlag.

# StructureMap Transformation Report

## Summary

Anwendungsfall: Verschreibung und Abgabe eines Wirkstoff-Medikaments (Lenalidomid) und nachfolgender Transformation in einen digitalen Durchschlag.

Beispiel-Artefakte:

- Quell-Dateien:
  - `example-case-02-KBV_Bundle.xml`
  - `example-case-02-MedicationDispense_Parameters.xml`
  - `example-case-02-Task.xml`
  - `example-case-02-VZDSearchSet.xml`
- Mapping Bundle (generiert): `example-case-02-mapping-bundle.json`
- Digitaler Durchschlag (Ergebnis): `example-case-02-digitaler-durchschlag.json`

## Resource Mapping Details

### Medication

#### Source: `Medication/a3ccc266-b033-47cc-9361-98ec450f7db9`

Target: `rxPrescription.medication:Medication` (`Medication`)

Source Field | Source Value | Target Field | Target Value | Status
--- | --- | --- | --- | ---
`amount.denominator.value` | 1 | `amount.denominator.value` | 1 | ✅
`amount.numerator.extension[0].url` | https://fhir.kbv.de/StructureDefinition/KBV_EX_… | `amount.numerator.extension[0].url` | https://gematik.de/fhir/epa-medication/Structur… | ✅
`amount.numerator.extension[0].valueString` | 21 | `amount.numerator.extension[0].valueString` | 21 | ✅
`amount.numerator.unit` | Stück | `amount.numerator.unit` | Stück | ✅
`form.text` | Retardtabletten | `form.text` | Retardtabletten | ✅
`id` | a3ccc266-b033-47cc-9361-98ec450f7db9 | `id` | a3ccc266-b033-47cc-9361-98ec450f7db9 | ✅
`ingredient[0].itemCodeableConcept.text` | Lenalidomid | `ingredient[0].itemCodeableConcept.text` | Lenalidomid | ✅
`ingredient[0].strength.denominator.unit` | Stück | `ingredient[0].strength.denominator.unit` | Stück | ✅
`ingredient[0].strength.denominator.value` | 1 | `ingredient[0].strength.denominator.value` | 1 | ✅
`ingredient[0].strength.numerator.unit` | mg | `ingredient[0].strength.numerator.unit` | mg | ✅
`ingredient[0].strength.numerator.value` | 2.5 | `ingredient[0].strength.numerator.value` | 2.5 | ✅
`code.coding[0].code` | wirkstoff | - | - | ⚠️
`code.coding[0].system` | https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medic… | - | - | ⚠️
`extension[0].url` | https://fhir.kbv.de/StructureDefinition/KBV_EX_… | - | - | ⚠️
`extension[0].valueCoding.code` | 02 | - | - | ⚠️
`extension[0].valueCoding.system` | https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medic… | - | - | ⚠️
`extension[1].url` | https://fhir.kbv.de/StructureDefinition/KBV_EX_… | - | - | ⚠️
`extension[1].valueBoolean` | false | - | - | ⚠️
`extension[2].url` | http://fhir.de/StructureDefinition/normgroesse | - | - | ⚠️
`extension[2].valueCode` | N1 | - | - | ⚠️

#### Source: `Medication/8e2e5e65-4c5d-49f2-8efc-c30e40838273`

Target: `rxDispensation.dispenseInformation.medication:Medication` (`Medication`)

Source Field | Source Value | Target Field | Target Value | Status
--- | --- | --- | --- | ---
`amount.denominator.value` | 1 | `amount.denominator.value` | 1 | ✅
`amount.numerator.extension[0].url` | https://gematik.de/fhir/epa-medication/Structur… | `amount.numerator.extension[0].url` | https://gematik.de/fhir/epa-medication/Structur… | ✅
`amount.numerator.extension[0].valueString` | 21 | `amount.numerator.extension[0].valueString` | 21 | ✅
`amount.numerator.unit` | St | `amount.numerator.unit` | St | ✅
`code.coding[0].code` | 17629624 | `code.coding[0].code` | 17629624 | ✅
`code.coding[0].system` | http://fhir.de/CodeSystem/ifa/pzn | `code.coding[0].system` | http://fhir.de/CodeSystem/ifa/pzn | ✅
`code.text` | Lenalidomid Ethypharm 2,5 mg Hartkapseln | `code.text` | Lenalidomid Ethypharm 2,5 mg Hartkapseln | ✅
`form.coding[0].code` | TAB | `form.coding[0].code` | TAB | ✅
`form.coding[0].display` | Tabletten | `form.coding[0].display` | Tabletten | ✅
`form.coding[0].system` | https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV… | `form.coding[0].system` | https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV… | ✅
`id` | 8e2e5e65-4c5d-49f2-8efc-c30e40838273 | `id` | 8e2e5e65-4c5d-49f2-8efc-c30e40838273 | ✅
`ingredient[0].itemCodeableConcept.text` | Lenalidomid | `ingredient[0].itemCodeableConcept.text` | Lenalidomid | ✅
`ingredient[0].strength.denominator.unit` | Tbl. | `ingredient[0].strength.denominator.unit` | Tbl. | ✅
`ingredient[0].strength.denominator.value` | 1 | `ingredient[0].strength.denominator.value` | 1 | ✅
`ingredient[0].strength.numerator.unit` | mg | `ingredient[0].strength.numerator.unit` | mg | ✅
`ingredient[0].strength.numerator.value` | 2.5 | `ingredient[0].strength.numerator.value` | 2.5 | ✅
`batch.lotNumber` | A123456789-1 | - | - | ⚠️

### MedicationDispense

#### Source: `MedicationDispense/a7e1d25f-0b0a-40f7-b529-afda48e51b46`

Target: `rxDispensation.dispenseInformation.medicationDispense:MedicationDispense` (`MedicationDispense`)

Source Field | Source Value | Target Field | Target Value | Status
--- | --- | --- | --- | ---
`dosageInstruction.doseAndRate.doseQuantity.code` | 1 | `dosageInstruction[0].doseAndRate[0].doseQuantity.code` | 1 | ✅
`dosageInstruction.doseAndRate.doseQuantity.system` | https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_BMP… | `dosageInstruction[0].doseAndRate[0].doseQuantity.system` | https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_BMP… | ✅
`dosageInstruction.doseAndRate.doseQuantity.unit` | Stück | `dosageInstruction[0].doseAndRate[0].doseQuantity.unit` | Stück | ✅
`dosageInstruction.doseAndRate.doseQuantity.value` | 1 | `dosageInstruction[0].doseAndRate[0].doseQuantity.value` | 1 | ✅
`dosageInstruction.timing.repeat.frequency` | 1 | `dosageInstruction[0].timing.repeat.frequency` | 1 | ✅
`dosageInstruction.timing.repeat.period` | 1 | `dosageInstruction[0].timing.repeat.period` | 1 | ✅
`dosageInstruction.timing.repeat.periodUnit` | d | `dosageInstruction[0].timing.repeat.periodUnit` | d | ✅
`extension[0].url` | http://hl7.org/fhir/5.0/StructureDefinition/ext… | `extension[1].url` | http://hl7.org/fhir/5.0/StructureDefinition/ext… | ✅
`extension[0].valueMarkdown` | 0-0-1-0 Stück | `extension[1].valueMarkdown` | 0-0-1-0 Stück | ✅
`extension[1].extension[0].url` | algorithmVersion | `extension[0].extension[0].url` | algorithmVersion | ✅
`extension[1].extension[0].valueString` | 1.0.0 | `extension[0].extension[0].valueString` | 1.0.0 | ✅
`extension[1].extension[1].url` | language | `extension[0].extension[1].url` | language | ✅
`extension[1].extension[1].valueCode` | de-DE | `extension[0].extension[1].valueCode` | de-DE | ✅
`extension[1].url` | http://ig.fhir.de/igs/medication/StructureDefin… | `extension[0].url` | http://ig.fhir.de/igs/medication/StructureDefin… | ✅
`medicationReference.reference` | urn:uuid:8e2e5e65-4c5d-49f2-8efc-c30e40838273 | `medicationReference.reference` | urn:uuid:8e2e5e65-4c5d-49f2-8efc-c30e40838273 | ✅
`quantity.unit` | Packung | `quantity.unit` | Packung | ✅
`quantity.value` | 1 | `quantity.value` | 1 | ✅
`status` | completed | `status` | completed | ✅
`whenHandedOver` | 2025-10-30 | `whenHandedOver` | 2025-10-30 | ✅
`dosageInstruction.timing.repeat.when` | EVE | - | - | ⚠️
`id` | a7e1d25f-0b0a-40f7-b529-afda48e51b46 | - | - | ⚠️
`identifier[0].system` | https://gematik.de/fhir/erp/NamingSystem/GEM_ER… | - | - | ⚠️
`identifier[0].value` | 166.100.000.000.021.76 | - | - | ⚠️
`performer[0].actor.identifier.system` | https://gematik.de/fhir/sid/telematik-id | - | - | ⚠️
`performer[0].actor.identifier.value` | 3-07.2.1234560000.10.789 | - | - | ⚠️
`subject.identifier.system` | http://fhir.de/sid/gkv/kvid-10 | - | - | ⚠️
`subject.identifier.value` | X234567890 | - | - | ⚠️
`substitution.wasSubstituted` | true | - | - | ⚠️

New fields created by transformation:

Target Field | Target Value | Status
--- | --- | ---
`performer[0].actor.reference` | Organization/3-07.2.1234560000.10.789 | 🆕

### MedicationRequest

#### Source: `MedicationRequest/0886a530-68ef-4517-9999-b24f79b08da1`

Target: `rxPrescription.medicationRequest:MedicationRequest` (`MedicationRequest`)

Source Field | Source Value | Target Field | Target Value | Status
--- | --- | --- | --- | ---
`authoredOn` | 2025-05-20 | `authoredOn` | 2025-05-20 | ✅
`dispenseRequest.expectedSupplyDuration.unit` | Woche(n) | `dispenseRequest.expectedSupplyDuration.unit` | Woche(n) | ✅
`dispenseRequest.expectedSupplyDuration.value` | 3 | `dispenseRequest.expectedSupplyDuration.value` | 3 | ✅
`dispenseRequest.quantity.unit` | Packung | `dispenseRequest.quantity.unit` | Packung | ✅
`dispenseRequest.quantity.value` | 1 | `dispenseRequest.quantity.value` | 1 | ✅
`dosageInstruction[0].doseAndRate[0].doseQuantity.code` | 1 | `dosageInstruction[0].doseAndRate[0].doseQuantity.code` | 1 | ✅
`dosageInstruction[0].doseAndRate[0].doseQuantity.system` | https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_BMP… | `dosageInstruction[0].doseAndRate[0].doseQuantity.system` | https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_BMP… | ✅
`dosageInstruction[0].doseAndRate[0].doseQuantity.unit` | Stück | `dosageInstruction[0].doseAndRate[0].doseQuantity.unit` | Stück | ✅
`dosageInstruction[0].doseAndRate[0].doseQuantity.value` | 1 | `dosageInstruction[0].doseAndRate[0].doseQuantity.value` | 1 | ✅
`dosageInstruction[0].timing.repeat.frequency` | 1 | `dosageInstruction[0].timing.repeat.frequency` | 1 | ✅
`dosageInstruction[0].timing.repeat.period` | 1 | `dosageInstruction[0].timing.repeat.period` | 1 | ✅
`dosageInstruction[0].timing.repeat.periodUnit` | d | `dosageInstruction[0].timing.repeat.periodUnit` | d | ✅
`dosageInstruction[0].timing.repeat.when[0]` | MORN | `dosageInstruction[0].timing.repeat.when[0]` | MORN | ✅
`extension[4].extension[0].url` | Off-Label | `extension[0].extension[0].url` | off-label | ✅
`extension[4].extension[0].valueBoolean` | false | `extension[0].extension[0].valueBoolean` | false | ✅
`extension[4].extension[1].url` | GebaerfaehigeFrau | `extension[0].extension[1].url` | childbearing-potential | ✅
`extension[4].extension[1].valueBoolean` | true | `extension[0].extension[1].valueBoolean` | true | ✅
`extension[4].extension[2].url` | EinhaltungSicherheitsmassnahmen | `extension[0].extension[2].url` | security-compliance | ✅
`extension[4].extension[2].valueBoolean` | true | `extension[0].extension[2].valueBoolean` | true | ✅
`extension[4].extension[3].url` | AushaendigungInformationsmaterialien | `extension[0].extension[3].url` | hand-out-information-material | ✅
`extension[4].extension[3].valueBoolean` | true | `extension[0].extension[3].valueBoolean` | true | ✅
`extension[4].extension[4].url` | ErklaerungSachkenntnis | `extension[0].extension[4].url` | declaration-of-expertise | ✅
`extension[4].extension[4].valueBoolean` | true | `extension[0].extension[4].valueBoolean` | true | ✅
`extension[4].url` | https://fhir.kbv.de/StructureDefinition/KBV_EX_… | `extension[0].url` | https://gematik.de/fhir/epa-medication/Structur… | ✅
`extension[6].url` | http://hl7.org/fhir/5.0/StructureDefinition/ext… | `extension[2].url` | http://hl7.org/fhir/5.0/StructureDefinition/ext… | ✅
`extension[6].valueMarkdown` | 1-0-0-0 Stück | `extension[2].valueMarkdown` | 1-0-0-0 Stück | ✅
`extension[7].extension[0].url` | algorithmVersion | `extension[1].extension[0].url` | algorithmVersion | ✅
`extension[7].extension[0].valueString` | 1.0.0 | `extension[1].extension[0].valueString` | 1.0.0 | ✅
`extension[7].extension[1].url` | language | `extension[1].extension[1].url` | language | ✅
`extension[7].extension[1].valueCode` | de-DE | `extension[1].extension[1].valueCode` | de-DE | ✅
`extension[7].url` | http://ig.fhir.de/igs/medication/StructureDefin… | `extension[1].url` | http://ig.fhir.de/igs/medication/StructureDefin… | ✅
`intent` | order | `intent` | order | ✅
`medicationReference.reference` | http://pvs.praxis.local/fhir/Medication/a3ccc26… | `medicationReference.reference` | urn:uuid:a3ccc266-b033-47cc-9361-98ec450f7db9 | ✅
`status` | active | `status` | completed | ✅
`extension[0].url` | https://fhir.kbv.de/StructureDefinition/KBV_EX_… | - | - | ⚠️
`extension[0].valueCoding.code` | 0 | - | - | ⚠️
`extension[0].valueCoding.system` | https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Statu… | - | - | ⚠️
`extension[1].url` | https://fhir.kbv.de/StructureDefinition/KBV_EX_… | - | - | ⚠️
`extension[1].valueBoolean` | false | - | - | ⚠️
`extension[2].url` | https://fhir.kbv.de/StructureDefinition/KBV_EX_… | - | - | ⚠️
`extension[2].valueBoolean` | false | - | - | ⚠️
`extension[3].extension[0].url` | Kennzeichen | - | - | ⚠️
`extension[3].extension[0].valueBoolean` | false | - | - | ⚠️
`extension[3].url` | https://fhir.kbv.de/StructureDefinition/KBV_EX_… | - | - | ⚠️
`extension[5].url` | https://fhir.kbv.de/StructureDefinition/KBV_EX_… | - | - | ⚠️
`extension[5].valueBoolean` | true | - | - | ⚠️
`id` | 0886a530-68ef-4517-9999-b24f79b08da1 | - | - | ⚠️
`insurance[0].reference` | http://pvs.praxis.local/fhir/Coverage/da80211e-… | - | - | ⚠️
`requester.reference` | http://pvs.praxis.local/fhir/Practitioner/d6f3b… | - | - | ⚠️
`subject.reference` | http://pvs.praxis.local/fhir/Patient/ce4104af-b… | - | - | ⚠️

New fields created by transformation:

Target Field | Target Value | Status
--- | --- | ---
`subject.identifier._system.extension[0].url` | http://hl7.org/fhir/StructureDefinition/data-ab… | 🆕
`subject.identifier._system.extension[0].valueCode` | not-permitted | 🆕
`subject.identifier._value.extension[0].url` | http://hl7.org/fhir/StructureDefinition/data-ab… | 🆕
`subject.identifier._value.extension[0].valueCode` | not-permitted | 🆕

### VZDComposite

#### Source: `VZDComposite/VZD-SearchSet-Bundle`

Target: `rxDispensation.dispenseOrganization:Organization` (`Organization`)

Source Field | Source Value | Target Field | Target Value | Status
--- | --- | --- | --- | ---
`address.city` | Großostheim | `address[0].city` | Großostheim | ✅
`address.country` | DE | `address[0].country` | DE | ✅
`address.line[0]` | Schwarzwaldstr. 18 | `address[0].line[0]` | Schwarzwaldstr. 18 | ✅
`address.postalCode` | 63762 | `address[0].postalCode` | 63762 | ✅
`address.state` | Bayern | `address[0].state` | Bayern | ✅
`address.text` | Schwarzwaldstr. 18 63762 Groß… | `address[0].text` | Schwarzwaldstr. 18 63762 Groß… | ✅
`address.type` | postal | `address[0].type` | postal | ✅
`address.use` | work | `address[0].use` | work | ✅
`id` | VZD-SearchSet-Bundle | `id` | 3-07.2.1234560000.10.789 | ✅
`identifier[1].system` | https://gematik.de/fhir/sid/telematik-id | `identifier[0].system` | https://gematik.de/fhir/sid/telematik-id | ✅
`identifier[1].value` | 3-07.2.1234560000.10.789 | `identifier[0].value` | 3-07.2.1234560000.10.789 | ✅
`name` | Schwarzwald Apotheke | `name` | Schwarzwald Apotheke | ✅
`telecom[0].system` | phone | `telecom[0].system` | phone | ✅
`telecom[0].use` | work | `telecom[0].use` | work | ✅
`telecom[0].value` | 1234 | `telecom[0].value` | 1234 | ✅
`identifier[1].type.coding[0].code` | PRN | - | - | ⚠️
`identifier[1].type.coding[0].system` | http://terminology.hl7.org/CodeSystem/v2-0203 | - | - | ⚠️
`sourceResources[2]` | Location | - | - | ⚠️

Zurück zur Test-Übersicht