Generated Narrative: StructureMap KBVPrErpBundleMap #xD; map "https://gematik.de/fhir/structure-comparer/StructureMap/KBVPrErpBundleMap" = "KBVPrErpBundleMap"#xD; #xD; // Auto-generated StructureMap for transformation KBV_PR_ERP_Bundle|1.4.0 -> EPAOpProvidePrescriptionERPInputParameters|1.3.0#xD; #xD; uses "https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle" alias KBVPRERPBundle as source#xD; uses "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters" alias EPAOpProvidePrescriptionERPInputParameters as target#xD; #xD; imports "https://gematik.de/fhir/structure-comparer/StructureMap/KBVPrErpMedicationCompoundingMap"#xD; imports "https://gematik.de/fhir/structure-comparer/StructureMap/KBVPrErpMedicationFreetextMap"#xD; imports "https://gematik.de/fhir/structure-comparer/StructureMap/KBVPrErpMedicationIngredientMap"#xD; imports "https://gematik.de/fhir/structure-comparer/StructureMap/KBVPrErpMedicationPznMap"#xD; imports "https://gematik.de/fhir/structure-comparer/StructureMap/KBVPrErpPrescriptionMap"#xD; imports "https://gematik.de/fhir/structure-comparer/StructureMap/KBVPrForOrganizationMap"#xD; imports "https://gematik.de/fhir/structure-comparer/StructureMap/KBVPrForPractitionerMap"#xD; #xD; // Transformation generated for KBV_PR_ERP_Bundle|1.4.0 -> EPAOpProvidePrescriptionERPInputParameters|1.3.0#xD; group KBVPrErpBundleMap(source KBVPRERPBundle : KBVPRERPBundle, target EPAOpProvidePrescriptionERPInputParameters : EPAOpProvidePrescriptionERPInputParameters) <<types>> {#xD; KBVPRERPBundle -> EPAOpProvidePrescriptionERPInputParameters.parameter as targetParameterRxprescriptionParameter77d85b46 then {#xD; KBVPRERPBundle -> targetParameterRxprescriptionParameter77d85b46.name = 'rxPrescription' "SetParameterRxprescriptionName";#xD; KBVPRERPBundle -> targetParameterRxprescriptionParameter77d85b46.part as targetPartAuthoredonPartb106c48f then {#xD; KBVPRERPBundle -> targetPartAuthoredonPartb106c48f.name = 'authoredOn' "SetPartAuthoredonName";#xD; KBVPRERPBundle.entry as inlinesourceParametersParameterRxprescriptionPartAuthoredonValue where resource.meta.profile.where($this.contains('https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription')).exists() then {#xD; inlinesourceParametersParameterRxprescriptionPartAuthoredonValue.resource as inlinesourceParametersParameterRxprescriptionPartAuthoredonValue then {#xD; inlinesourceParametersParameterRxprescriptionPartAuthoredonValue.authoredOn as inlinesourceParametersParameterRxprescriptionPartAuthoredonValue -> targetPartAuthoredonPartb106c48f.value = inlinesourceParametersParameterRxprescriptionPartAuthoredonValue as inlinetargetParametersParameterRxprescriptionPartAuthoredonValue "InlineParametersParameterRxprescriptionPartAuthoredonValueX1c6fc";#xD; } "InlineParametersParameterRxprescriptionPartAuthoredonValueX1c6fc";#xD; } "InlineParametersParameterRxprescriptionPartAuthoredonValueX1c6fc"; // Automatic copy#xD; } "PartAuthoredonPartContainer"; // Creates part:authoredOn part container aggregating 1 child rule(s)#xD; KBVPRERPBundle -> targetParameterRxprescriptionParameter77d85b46.part as targetPartMedicationPart88f31ec4 then {#xD; KBVPRERPBundle -> targetPartMedicationPart88f31ec4.name = 'medication' "SetPartMedicationName";#xD; KBVPRERPBundle.entry as sourceBundleEntryRezeptierdatenpznverordnungResource0Entry4c4ad0 where resource is Medication then {#xD; sourceBundleEntryRezeptierdatenpznverordnungResource0Entry4c4ad0.resource as sourceBundleEntryRezeptierdatenpznverordnungResource1Resource3bd then {#xD; sourceBundleEntryRezeptierdatenpznverordnungResource1Resource3bd -> targetPartMedicationPart88f31ec4.resource = create('https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication') as targetParameterRxprescriptionPartMedicationResourceResource38c62 then KBVPrErpMedicationPznMap(sourceBundleEntryRezeptierdatenpznverordnungResource1Resource3bd, targetParameterRxprescriptionPartMedicationResourceResource38c62) "CallKbvprerpmedicationpznmap";#xD; } "BundleEntryRezeptierdatenpznverordnungResource7400f329";#xD; } "BundleEntryRezeptierdatenpznverordnungResource7400f329"; // Bundle.entry:RezeptierdatenPZNVerordnung.resource -> .parameter:rxPrescription.part:medication.resource using KBV_PR_ERP_Medication_PZN|1.4.0 -> EPAMedication|1.3.0#xD; KBVPRERPBundle.entry as sourceBundleEntryRezeptierdatenwirkstoffverordnungResource0Ent6b where resource is Medication then {#xD; sourceBundleEntryRezeptierdatenwirkstoffverordnungResource0Ent6b.resource as sourceBundleEntryRezeptierdatenwirkstoffverordnungResource1Res9f then {#xD; sourceBundleEntryRezeptierdatenwirkstoffverordnungResource1Res9f -> targetPartMedicationPart88f31ec4.resource = create('https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication') as targetParameterRxprescriptionPartMedicationResourceResource38c62 then KBVPrErpMedicationIngredientMap(sourceBundleEntryRezeptierdatenwirkstoffverordnungResource1Res9f, targetParameterRxprescriptionPartMedicationResourceResource38c62) "CallKbvprerpmedicationingredientmap";#xD; } "BundleEntryRezeptierdatenwirkstoffverordnungResource7400f329";#xD; } "BundleEntryRezeptierdatenwirkstoffverordnungResource7400f329"; // Bundle.entry:RezeptierdatenWirkstoffverordnung.resource -> .parameter:rxPrescription.part:medication.resource using KBV_PR_ERP_Medication_Ingredient|1.4.0 -> EPAMedication|1.3.0#xD; KBVPRERPBundle.entry as sourceBundleEntryRezeptierdatenrezepturverordnungResource0Entr83 where resource is Medication then {#xD; sourceBundleEntryRezeptierdatenrezepturverordnungResource0Entr83.resource as sourceBundleEntryRezeptierdatenrezepturverordnungResource1Resocd then {#xD; sourceBundleEntryRezeptierdatenrezepturverordnungResource1Resocd -> targetPartMedicationPart88f31ec4.resource = create('https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication') as targetParameterRxprescriptionPartMedicationResourceResource38c62 then KBVPrErpMedicationCompoundingMap(sourceBundleEntryRezeptierdatenrezepturverordnungResource1Resocd, targetParameterRxprescriptionPartMedicationResourceResource38c62) "CallKbvprerpmedicationcompoundingmap";#xD; } "BundleEntryRezeptierdatenrezepturverordnungResource7400f329";#xD; } "BundleEntryRezeptierdatenrezepturverordnungResource7400f329"; // Bundle.entry:RezeptierdatenRezepturverordnung.resource -> .parameter:rxPrescription.part:medication.resource using KBV_PR_ERP_Medication_Compounding|1.4.0 -> EPAMedication|1.3.0#xD; KBVPRERPBundle.entry as sourceBundleEntryRezeptierdatenfreitextverordnungResource0Entrb4 where resource is Medication then {#xD; sourceBundleEntryRezeptierdatenfreitextverordnungResource0Entrb4.resource as sourceBundleEntryRezeptierdatenfreitextverordnungResource1Resob3 then {#xD; sourceBundleEntryRezeptierdatenfreitextverordnungResource1Resob3 -> targetPartMedicationPart88f31ec4.resource = create('https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication') as targetParameterRxprescriptionPartMedicationResourceResource38c62 then KBVPrErpMedicationFreetextMap(sourceBundleEntryRezeptierdatenfreitextverordnungResource1Resob3, targetParameterRxprescriptionPartMedicationResourceResource38c62) "CallKbvprerpmedicationfreetextmap";#xD; } "BundleEntryRezeptierdatenfreitextverordnungResource7400f329";#xD; } "BundleEntryRezeptierdatenfreitextverordnungResource7400f329"; // Bundle.entry:RezeptierdatenFreitextverordnung.resource -> .parameter:rxPrescription.part:medication.resource using KBV_PR_ERP_Medication_FreeText|1.4.0 -> EPAMedication|1.3.0#xD; } "PartMedicationPartContainer"; // Creates part:medication part container aggregating 4 child rule(s)#xD; KBVPRERPBundle -> targetParameterRxprescriptionParameter77d85b46.part as targetPartMedicationrequestPart3ea10d80 then {#xD; KBVPRERPBundle -> targetPartMedicationrequestPart3ea10d80.name = 'medicationRequest' "SetPartMedicationrequestName";#xD; KBVPRERPBundle.entry as sourceBundleEntryVerordnungarzneimittelResource0Entry3c6c2e1b where resource is MedicationRequest then {#xD; sourceBundleEntryVerordnungarzneimittelResource0Entry3c6c2e1b.resource as sourceBundleEntryVerordnungarzneimittelResource1Resource61f06fbc then {#xD; sourceBundleEntryVerordnungarzneimittelResource1Resource61f06fbc -> targetPartMedicationrequestPart3ea10d80.resource = create('https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request') as targetParameterRxprescriptionPartMedicationrequestResourceReso52 then KBVPrErpPrescriptionMap(sourceBundleEntryVerordnungarzneimittelResource1Resource61f06fbc, targetParameterRxprescriptionPartMedicationrequestResourceReso52) "CallKbvprerpprescriptionmap";#xD; } "BundleEntryVerordnungarzneimittelResource890c831b";#xD; } "BundleEntryVerordnungarzneimittelResource890c831b"; // Bundle.entry:VerordnungArzneimittel.resource -> .parameter:rxPrescription.part:medicationRequest.resource using KBV_PR_ERP_Prescription|1.4.0 -> EPAMedicationRequest|1.3.0#xD; } "PartMedicationrequestPartContainer"; // Creates part:medicationRequest part container aggregating 1 child rule(s)#xD; KBVPRERPBundle -> targetParameterRxprescriptionParameter77d85b46.part as targetPartOrganizationPart5252e12d then {#xD; KBVPRERPBundle -> targetPartOrganizationPart5252e12d.name = 'organization' "SetPartOrganizationName";#xD; KBVPRERPBundle.entry as sourceBundleEntryEinrichtungResource0Entry6bfa77fa where resource is Organization then {#xD; sourceBundleEntryEinrichtungResource0Entry6bfa77fa.resource as sourceBundleEntryEinrichtungResource1Resource45328e4f then {#xD; sourceBundleEntryEinrichtungResource1Resource45328e4f -> targetPartOrganizationPart5252e12d.resource = create('https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory') as targetParameterRxprescriptionPartOrganizationResourceResource43b then KBVPrForOrganizationMap(sourceBundleEntryEinrichtungResource1Resource45328e4f, targetParameterRxprescriptionPartOrganizationResourceResource43b) "CallKbvprfororganizationmap";#xD; } "BundleEntryEinrichtungResourceB36f36fb";#xD; } "BundleEntryEinrichtungResourceB36f36fb"; // Bundle.entry:Einrichtung.resource -> .parameter:rxPrescription.part:organization.resource using KBV_PR_FOR_Organization|1.3.0 -> OrganizationDirectory|1.0.0#xD; } "PartOrganizationPartContainer"; // Creates part:organization part container aggregating 1 child rule(s)#xD; KBVPRERPBundle -> targetParameterRxprescriptionParameter77d85b46.part as targetPartPractitionerParte111e9d1 then {#xD; KBVPRERPBundle -> targetPartPractitionerParte111e9d1.name = 'practitioner' "SetPartPractitionerName";#xD; KBVPRERPBundle.entry as sourceBundleEntryAusstellendeverschreibendeverantwortlichepersb5 where resource is Practitioner then {#xD; sourceBundleEntryAusstellendeverschreibendeverantwortlichepersb5.resource as sourceBundleEntryAusstellendeverschreibendeverantwortlicheperse9 then {#xD; sourceBundleEntryAusstellendeverschreibendeverantwortlicheperse9 -> targetPartPractitionerParte111e9d1.resource = create('https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory') as targetParameterRxprescriptionPartPractitionerResourceResource62d then KBVPrForPractitionerMap(sourceBundleEntryAusstellendeverschreibendeverantwortlicheperse9, targetParameterRxprescriptionPartPractitionerResourceResource62d) "CallKbvprforpractitionermap";#xD; } "BundleEntryAusstellendeverschreibendeverantwortlichepersonResour";#xD; } "BundleEntryAusstellendeverschreibendeverantwortlichepersonResour"; // Bundle.entry:AusstellendeVerschreibendeVerantwortlichePerson.resource -> .parameter:rxPrescription.part:practitioner.resource using KBV_PR_FOR_Practitioner|1.3.0 -> PractitionerDirectory|1.0.0#xD; } "PartPractitionerPartContainer"; // Creates part:practitioner part container aggregating 1 child rule(s)#xD; KBVPRERPBundle -> targetParameterRxprescriptionParameter77d85b46.part as targetPartPrescriptionidPartee663288 then {#xD; KBVPRERPBundle -> targetPartPrescriptionidPartee663288.name = 'prescriptionId' "SetPartPrescriptionidName";#xD; KBVPRERPBundle.identifier as inlinesourceParametersParameterRxprescriptionPartPrescriptionidV then {#xD; inlinesourceParametersParameterRxprescriptionPartPrescriptionidV.value as inlinesourceParametersParameterRxprescriptionPartPrescriptionidV -> targetPartPrescriptionidPartee663288.value = inlinesourceParametersParameterRxprescriptionPartPrescriptionidV as inlinetargetParametersParameterRxprescriptionPartPrescriptionidV "InlineParametersParameterRxprescriptionPartPrescriptionidValueX9";#xD; } "InlineParametersParameterRxprescriptionPartPrescriptionidValueX9"; // Automatic copy#xD; } "PartPrescriptionidPartContainer"; // Creates part:prescriptionId part container aggregating 1 child rule(s)#xD; } "ParameterRxprescriptionContainer"; // Creates parameter:rxPrescription parameter container aggregating 6 part(s)#xD; }#xD; #xD;
Auto-generated StructureMap for transformation KBV_PR_ERP_Bundle|1.4.0 -> EPAOpProvidePrescriptionERPInputParameters|1.3.0
Transformation generated for KBV_PR_ERP_Bundle|1.4.0 -> EPAOpProvidePrescriptionERPInputParameters|1.3.0
Creates part:authoredOn part container aggregating 1 child rule(s)
Bundle.entry:RezeptierdatenPZNVerordnung.resource -> .parameter:rxPrescription.part:medication.resource using KBV_PR_ERP_Medication_PZN|1.4.0 -> EPAMedication|1.3.0
Bundle.entry:RezeptierdatenWirkstoffverordnung.resource -> .parameter:rxPrescription.part:medication.resource using KBV_PR_ERP_Medication_Ingredient|1.4.0 -> EPAMedication|1.3.0
Bundle.entry:RezeptierdatenRezepturverordnung.resource -> .parameter:rxPrescription.part:medication.resource using KBV_PR_ERP_Medication_Compounding|1.4.0 -> EPAMedication|1.3.0
Bundle.entry:RezeptierdatenFreitextverordnung.resource -> .parameter:rxPrescription.part:medication.resource using KBV_PR_ERP_Medication_FreeText|1.4.0 -> EPAMedication|1.3.0
Creates part:medication part container aggregating 4 child rule(s)
Bundle.entry:VerordnungArzneimittel.resource -> .parameter:rxPrescription.part:medicationRequest.resource using KBV_PR_ERP_Prescription|1.4.0 -> EPAMedicationRequest|1.3.0
Creates part:medicationRequest part container aggregating 1 child rule(s)
Bundle.entry:Einrichtung.resource -> .parameter:rxPrescription.part:organization.resource using KBV_PR_FOR_Organization|1.3.0 -> OrganizationDirectory|1.0.0
Creates part:organization part container aggregating 1 child rule(s)
Bundle.entry:AusstellendeVerschreibendeVerantwortlichePerson.resource -> .parameter:rxPrescription.part:practitioner.resource using KBV_PR_FOR_Practitioner|1.3.0 -> PractitionerDirectory|1.0.0
Creates part:practitioner part container aggregating 1 child rule(s)
Creates part:prescriptionId part container aggregating 1 child rule(s)
Creates parameter:rxPrescription parameter container aggregating 6 part(s)